Skip to content

Commit cb0105f

Browse files
authored
FIX: Removed write_no_cache_invalidation where necessary to avoid stale cache (#498)
1 parent d5034e4 commit cb0105f

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
55
[project]
66
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
77
name = "ansys-edb-core"
8-
version = "0.2.dev1"
8+
version = "0.2.0.dev2"
99
description = "A python wrapper for Ansys Edb service"
1010
readme = "README.rst"
1111
requires-python = ">=3.8"

src/ansys/edb/core/inner/rpc_info.py

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def invalidates_cache(self):
5454
"ClosestPoints": _RpcInfo(cache=True),
5555
},
5656
"ansys.api.edb.v1.BoardBendDefService": {
57-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
57+
"Create": _RpcInfo(returns_future=True, buffer=True),
5858
"GetBoundaryPrim": _RpcInfo(cache=True),
5959
"GetBendMiddle": _RpcInfo(cache=True),
6060
"SetBendMiddle": _RpcInfo(buffer=True),
@@ -65,7 +65,7 @@ def invalidates_cache(self):
6565
"GetBentRegions": _RpcInfo(cache=True),
6666
},
6767
"ansys.api.edb.v1.BondwireService": {
68-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
68+
"Create": _RpcInfo(returns_future=True, buffer=True),
6969
"GetMaterial": _RpcInfo(cache=True),
7070
"SetMaterial": _RpcInfo(buffer=True),
7171
"GetType": _RpcInfo(cache=True),
@@ -90,31 +90,31 @@ def invalidates_cache(self):
9090
"GetName": _RpcInfo(cache=True),
9191
},
9292
"ansys.api.edb.v1.ApdBondwireDefService": {
93-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
93+
"Create": _RpcInfo(returns_future=True, buffer=True),
9494
"FindByName": _RpcInfo(cache=True),
9595
"GetParameters": _RpcInfo(cache=True),
9696
"SetParameters": _RpcInfo(buffer=True),
9797
},
9898
"ansys.api.edb.v1.Jedec4BondwireDefService": {
99-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
99+
"Create": _RpcInfo(returns_future=True, buffer=True),
100100
"FindByName": _RpcInfo(cache=True),
101101
"GetParameters": _RpcInfo(cache=True),
102102
"SetParameters": _RpcInfo(buffer=True),
103103
},
104104
"ansys.api.edb.v1.Jedec5BondwireDefService": {
105-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
105+
"Create": _RpcInfo(returns_future=True, buffer=True),
106106
"FindByName": _RpcInfo(cache=True),
107107
"GetParameters": _RpcInfo(cache=True),
108108
"SetParameters": _RpcInfo(buffer=True),
109109
},
110110
"ansys.api.edb.v1.BundleTerminalService": {
111-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
111+
"Create": _RpcInfo(returns_future=True, buffer=True),
112112
"Ungroup": _RpcInfo(buffer=True),
113113
"GetTerminals": _RpcInfo(read_no_cache=True),
114114
"StreamTerminals": _RpcInfo(read_no_cache=True),
115115
},
116116
"ansys.api.edb.v1.CellService": {
117-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
117+
"Create": _RpcInfo(returns_future=True, buffer=True),
118118
"GetLayout": _RpcInfo(cache=True),
119119
"Find": _RpcInfo(cache=True),
120120
"Delete": _RpcInfo(buffer=True),
@@ -159,13 +159,13 @@ def invalidates_cache(self):
159159
"SetParameterOverride": _RpcInfo(buffer=True),
160160
},
161161
"ansys.api.edb.v1.CircleService": {
162-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
162+
"Create": _RpcInfo(returns_future=True, buffer=True),
163163
"Render": _RpcInfo(cache=True),
164164
"GetParameters": _RpcInfo(cache=True),
165165
"SetParameters": _RpcInfo(buffer=True),
166166
},
167167
"ansys.api.edb.v1.ComponentDefService": {
168-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
168+
"Create": _RpcInfo(returns_future=True, buffer=True),
169169
"FindByName": _RpcInfo(cache=True),
170170
"SetName": _RpcInfo(buffer=True),
171171
"GetName": _RpcInfo(cache=True),
@@ -179,7 +179,7 @@ def invalidates_cache(self):
179179
"RemoveComponentModel": _RpcInfo(buffer=True),
180180
},
181181
"ansys.api.edb.v1.ComponentGroupService": {
182-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
182+
"Create": _RpcInfo(returns_future=True, buffer=True),
183183
"GetNumberOfPins": _RpcInfo(cache=True),
184184
"GetComponentProperty": _RpcInfo(cache=True),
185185
"SetComponentProperty": _RpcInfo(buffer=True),
@@ -197,7 +197,7 @@ def invalidates_cache(self):
197197
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True)
198198
},
199199
"ansys.api.edb.v1.DynamicLinkComponentModelService": {
200-
"Create": _RpcInfo(returns_future=True, buffer=True),
200+
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
201201
"SetDesignName": _RpcInfo(buffer=True),
202202
"GetDesignName": _RpcInfo(cache=True),
203203
},
@@ -250,7 +250,7 @@ def invalidates_cache(self):
250250
"GetFootprints": _RpcInfo(cache=True),
251251
},
252252
"ansys.api.edb.v1.DatasetDefService": {
253-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
253+
"Create": _RpcInfo(returns_future=True, buffer=True),
254254
"FindByName": _RpcInfo(cache=True),
255255
"GetName": _RpcInfo(cache=True),
256256
"SetName": _RpcInfo(buffer=True),
@@ -286,7 +286,7 @@ def invalidates_cache(self):
286286
"SetOrientation": _RpcInfo(buffer=True),
287287
},
288288
"ansys.api.edb.v1.DifferentialPairService": {
289-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
289+
"Create": _RpcInfo(returns_future=True, buffer=True),
290290
"FindByName": _RpcInfo(cache=True),
291291
"GetDifferentialPair": _RpcInfo(cache=True),
292292
"SetDifferentialPair": _RpcInfo(buffer=True),
@@ -308,24 +308,24 @@ def invalidates_cache(self):
308308
},
309309
"ansys.api.edb.v1.EdgeService": {
310310
"GetEdgeType": _RpcInfo(cache=True),
311-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
311+
"Create": _RpcInfo(returns_future=True, buffer=True),
312312
"GetParameters": _RpcInfo(cache=True),
313313
},
314314
"ansys.api.edb.v1.EdgeTerminalService": {
315-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
315+
"Create": _RpcInfo(returns_future=True, buffer=True),
316316
"GetEdges": _RpcInfo(read_no_cache=True),
317317
"StreamEdges": _RpcInfo(read_no_cache=True),
318318
"SetEdges": _RpcInfo(buffer=True),
319319
},
320320
"ansys.api.edb.v1.ExtendedNetService": {
321-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
321+
"Create": _RpcInfo(returns_future=True, buffer=True),
322322
"FindByName": _RpcInfo(cache=True),
323323
"RemoveNet": _RpcInfo(buffer=True),
324324
"AddNet": _RpcInfo(buffer=True),
325325
"RemoveAllNets": _RpcInfo(buffer=True),
326326
},
327327
"ansys.api.edb.v1.GroupService": {
328-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
328+
"Create": _RpcInfo(returns_future=True, buffer=True),
329329
"FindByName": _RpcInfo(cache=True),
330330
"AddMember": _RpcInfo(buffer=True),
331331
"RemoveMember": _RpcInfo(buffer=True),
@@ -435,7 +435,7 @@ def invalidates_cache(self):
435435
"GetPortProperty": _RpcInfo(cache=True),
436436
},
437437
"ansys.api.edb.v1.InstArrayService": {
438-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
438+
"Create": _RpcInfo(returns_future=True, buffer=True),
439439
"FindByName": _RpcInfo(cache=True),
440440
"GetXAxis": _RpcInfo(cache=True),
441441
"SetXAxis": _RpcInfo(buffer=True),
@@ -485,7 +485,7 @@ def invalidates_cache(self):
485485
},
486486
"ansys.api.edb.v1.LayerCollectionService": {
487487
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
488-
"Clone": _RpcInfo(returns_future=True, buffer=True),
488+
"Clone": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
489489
"GetMode": _RpcInfo(cache=True, write_no_cache_invalidation=True),
490490
"SetMode": _RpcInfo(buffer=True),
491491
"AddLayers": _RpcInfo(buffer=True),
@@ -577,7 +577,7 @@ def invalidates_cache(self):
577577
"GetColor": _RpcInfo(cache=True),
578578
},
579579
"ansys.api.edb.v1.MaterialDefService": {
580-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
580+
"Create": _RpcInfo(returns_future=True, buffer=True),
581581
"SetProperty": _RpcInfo(buffer=True),
582582
"FindByName": _RpcInfo(cache=True),
583583
"Delete": _RpcInfo(buffer=True),
@@ -634,7 +634,7 @@ def invalidates_cache(self):
634634
"SetParameters": _RpcInfo(buffer=True),
635635
},
636636
"ansys.api.edb.v1.NetService": {
637-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
637+
"Create": _RpcInfo(returns_future=True, buffer=True),
638638
"FindByName": _RpcInfo(cache=True),
639639
"GetName": _RpcInfo(cache=True),
640640
"SetName": _RpcInfo(buffer=True),
@@ -644,7 +644,7 @@ def invalidates_cache(self):
644644
"StreamLayoutObjects": _RpcInfo(read_no_cache=True),
645645
},
646646
"ansys.api.edb.v1.NetClassService": {
647-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
647+
"Create": _RpcInfo(returns_future=True, buffer=True),
648648
"FindByName": _RpcInfo(cache=True),
649649
"GetName": _RpcInfo(cache=True),
650650
"SetName": _RpcInfo(buffer=True),
@@ -661,7 +661,7 @@ def invalidates_cache(self):
661661
"SetNetlist": _RpcInfo(buffer=True),
662662
},
663663
"ansys.api.edb.v1.PackageDefService": {
664-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
664+
"Create": _RpcInfo(returns_future=True, buffer=True),
665665
"Delete": _RpcInfo(buffer=True),
666666
"FindByName": _RpcInfo(cache=True),
667667
"FindByEDBUId": _RpcInfo(cache=True),
@@ -688,7 +688,7 @@ def invalidates_cache(self):
688688
"GetProductPropertyIds": _RpcInfo(cache=True),
689689
},
690690
"ansys.api.edb.v1.PadstackDefService": {
691-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
691+
"Create": _RpcInfo(returns_future=True, buffer=True),
692692
"Delete": _RpcInfo(buffer=True),
693693
"FindByName": _RpcInfo(cache=True),
694694
"GetName": _RpcInfo(cache=True),
@@ -720,7 +720,7 @@ def invalidates_cache(self):
720720
"SetConnectionPt": _RpcInfo(buffer=True),
721721
},
722722
"ansys.api.edb.v1.PadstackInstanceService": {
723-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
723+
"Create": _RpcInfo(returns_future=True, buffer=True),
724724
"GetPadstackDef": _RpcInfo(cache=True),
725725
"GetName": _RpcInfo(cache=True),
726726
"SetName": _RpcInfo(buffer=True),
@@ -752,7 +752,7 @@ def invalidates_cache(self):
752752
"SetParameters": _RpcInfo(buffer=True),
753753
},
754754
"ansys.api.edb.v1.PathService": {
755-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
755+
"Create": _RpcInfo(returns_future=True, buffer=True),
756756
"Render": _RpcInfo(cache=True),
757757
"GetPolygonData": _RpcInfo(cache=True),
758758
"GetCenterLine": _RpcInfo(cache=True),
@@ -769,15 +769,15 @@ def invalidates_cache(self):
769769
"SetMiterRatio": _RpcInfo(buffer=True),
770770
},
771771
"ansys.api.edb.v1.PinGroupService": {
772-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
772+
"Create": _RpcInfo(returns_future=True, buffer=True),
773773
"FindByName": _RpcInfo(cache=True),
774774
"GetName": _RpcInfo(cache=True),
775775
"AddPins": _RpcInfo(buffer=True),
776776
"RemovePins": _RpcInfo(buffer=True),
777777
"GetPinGroupTerminal": _RpcInfo(cache=True),
778778
},
779779
"ansys.api.edb.v1.PinGroupTerminalService": {
780-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
780+
"Create": _RpcInfo(returns_future=True, buffer=True),
781781
"GetPinGroup": _RpcInfo(cache=True),
782782
"SetPinGroup": _RpcInfo(buffer=True),
783783
"GetLayer": _RpcInfo(cache=True),
@@ -926,7 +926,7 @@ def invalidates_cache(self):
926926
"SetNetSettingsOptions": _RpcInfo(buffer=True),
927927
},
928928
"ansys.api.edb.v1.RectangleService": {
929-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
929+
"Create": _RpcInfo(returns_future=True, buffer=True),
930930
"GetParameters": _RpcInfo(cache=True),
931931
"SetParameters": _RpcInfo(buffer=True),
932932
"Render": _RpcInfo(cache=True),
@@ -1183,7 +1183,7 @@ def invalidates_cache(self):
11831183
"RemoveTerminalPinPair": _RpcInfo(buffer=True),
11841184
},
11851185
"ansys.api.edb.v1.StackupLayerService": {
1186-
"Create": _RpcInfo(returns_future=True, buffer=True),
1186+
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
11871187
"GetNegative": _RpcInfo(cache=True),
11881188
"SetNegative": _RpcInfo(buffer=True),
11891189
"GetThickness": _RpcInfo(cache=True),
@@ -1226,18 +1226,18 @@ def invalidates_cache(self):
12261226
"SetProductSolverOptions": _RpcInfo(buffer=True),
12271227
},
12281228
"ansys.api.edb.v1.TerminalInstanceService": {
1229-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
1229+
"Create": _RpcInfo(returns_future=True, buffer=True),
12301230
"GetOwningCellInstance": _RpcInfo(cache=True),
12311231
"GetDefinitionTerminal": _RpcInfo(cache=True),
12321232
"GetDefinitionTerminalName": _RpcInfo(cache=True),
12331233
},
12341234
"ansys.api.edb.v1.TerminalInstanceTerminalService": {
1235-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
1235+
"Create": _RpcInfo(returns_future=True, buffer=True),
12361236
"GetTerminalInstance": _RpcInfo(cache=True),
12371237
"SetTerminalInstance": _RpcInfo(buffer=True),
12381238
},
12391239
"ansys.api.edb.v1.TextService": {
1240-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
1240+
"Create": _RpcInfo(returns_future=True, buffer=True),
12411241
"GetTextData": _RpcInfo(cache=True),
12421242
"SetTextData": _RpcInfo(buffer=True),
12431243
},
@@ -1330,7 +1330,7 @@ def invalidates_cache(self):
13301330
"SetRefLayer": _RpcInfo(buffer=True),
13311331
},
13321332
"ansys.api.edb.v1.VoltageRegulatorService": {
1333-
"Create": _RpcInfo(returns_future=True, write_no_cache_invalidation=True, buffer=True),
1333+
"Create": _RpcInfo(returns_future=True, buffer=True),
13341334
"GetName": _RpcInfo(cache=True),
13351335
"SetName": _RpcInfo(buffer=True),
13361336
"IsActive": _RpcInfo(cache=True),

0 commit comments

Comments
 (0)