Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def auto_populate(aim):

# make sure missing data is properly represented as null in the JSON
for key, item in gi.items():
if pd.isna(item):
if pd.isna(item) or item=="":
gi[key] = None

# load the schema assuming it is called "input_schema.json" and it is
Expand Down
2 changes: 1 addition & 1 deletion seismic/building/portfolio/Hazus v6.1/pelicun_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def auto_populate(aim):

# make sure missing data is properly represented as null in the JSON
for key, item in gi.items():
if pd.isna(item):
if pd.isna(item) or item == "":
gi[key] = None

# add configuration data to the gi if it is not already there
Expand Down
Loading