Skip to content

Commit e6a6f2c

Browse files
committed
Update project.unload() to work with updated marine growth data storage setup
1 parent acf5d4b commit e6a6f2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

famodel/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4531,8 +4531,8 @@ def unload(self,file='project.yaml'):
45314531

45324532
if self.marine_growth:
45334533
site['marine_growth'] = {
4534-
'keys':['thickness', 'lowerRange', 'upperRange', 'density'][:len(self.marine_growth['th'])],
4535-
'data':[v for v in self.marine_growth['th']]
4534+
'keys':[key for key in self.marine_growth[0].keys()],
4535+
'data':[list(row.values()) for row in self.marine_growth]
45364536
}
45374537
if self.marine_growth_buoys:
45384538
site['marine_growth']['buoys'] = [x for x in self.marine_growth_buoys]

0 commit comments

Comments
 (0)