Skip to content

Commit cf99e6d

Browse files
committed
quick fix on generating profile_map converted from uniform:
- profile_map that is created when calling convertUniformToLayered is a list of dictionary entries that have name and layers as keys.
1 parent c1d470e commit cf99e6d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

famodel/project.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,10 +1325,11 @@ def convertUniformToLayered(self, default_layer=50.0):
13251325
using a default thickness and assuming uniform clay profile.
13261326
Matches the structure of layered CPT-based soil profiles.
13271327
'''
1328-
self.profile_map = {}
1328+
self.profile_map = []
13291329

13301330
for name, props in self.soilProps.items():
13311331
name = str(name)
1332+
13321333
gamma = float(props['gamma'][0])
13331334
Su0 = float(props['Su0'][0])
13341335
k = float(props['k'][0])
@@ -1342,7 +1343,8 @@ def convertUniformToLayered(self, default_layer=50.0):
13421343
'Su_top': Su0,
13431344
'Su_bot': Su0 + k * default_layer}
13441345

1345-
self.profile_map[name] = [layer] # just layers!
1346+
profile_entry = {'name': name, 'layers': [layer]}
1347+
self.profile_map.append(profile_entry)
13461348

13471349
def convertLayeredToUniform(self):
13481350
'''

0 commit comments

Comments
 (0)