Skip to content

Commit 183df6a

Browse files
committed
undo changes to unload from last commit
1 parent 42c335e commit 183df6a

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

famodel/project.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3953,15 +3953,14 @@ def unload(self,file='project.yaml'):
39533953

39543954
# build out site info
39553955
site = {}
3956-
3957-
if hasattr(self,'soilProps'):
3958-
sps = deepcopy(self.soilProps)
3959-
for ks,sp in sps.items():
3960-
for k,s in sp.items():
3961-
if not isinstance(s,list) and not 'array' in type(s).__name__:
3962-
sp[k] = [s]
3963-
sps[ks] = sp
3964-
3956+
3957+
sps = deepcopy(self.soilProps)
3958+
for ks,sp in sps.items():
3959+
for k,s in sp.items():
3960+
if not isinstance(s,list) and not 'array' in type(s).__name__:
3961+
sp[k] = [s]
3962+
sps[ks] = sp
3963+
if hasattr(self,'soilProps') and self.soilProps:
39653964
if len(self.soil_x)>1:
39663965
site['seabed'] = {'x':[float(x) for x in self.soil_x],'y':[float(x) for x in self.soil_y],'type_array':self.soil_names.tolist(),
39673966
'soil_types': sps}# [[[float(v[0])] for v in x.values()] for x in self.soilProps.values()]}

0 commit comments

Comments
 (0)