Skip to content

Commit 2d1d0b9

Browse files
Fix eventRelationship type and Set method. Version bump
1 parent 5ab8b11 commit 2d1d0b9

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

LoopProjectFile/ExtractedInformation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ def SetEventRelationships(root, data, append=False, verbose=False):
395395

396396
resp = GetEventRelationshipsGroup(root)
397397
if resp["errorFlag"]:
398-
print(resp["errorString"])
399398
erGroup = eiGroup.createGroup("EventRelationships")
400399
erGroup.setncattr("index_MaxValid", -1)
401400
erGroup.createDimension("index", None)

LoopProjectFile/Version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.0.24"
1+
__version__ = "0.0.25"
22

33

44
# Current Loop Project File Version

LoopProjectFile/projectfile.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"discontinuityLog": None,
2222
"dataCollectionConfig": None,
2323
"dataCollectionSources": None,
24-
"eventRelationships": None,
24+
"eventRelationships": LoopProjectFile.eventRelationshipType,
2525
"structuralModelsConfig": None
2626
}
2727

@@ -324,7 +324,10 @@ def __getitem__(self, element):
324324

325325
def __setitem__(self, element, value):
326326
if compoundTypeMap[element] is None:
327-
Set(self.project_filename, element, value)
327+
if isinstance(value, dict):
328+
Set(self.project_filename, element, **value)
329+
else:
330+
Set(self.project_filename, element, {element:value})
328331
else:
329332
if isinstance(value, pd.DataFrame):
330333
names = compoundTypeMap[element].names

0 commit comments

Comments
 (0)