We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a24cbcb commit 44ce33aCopy full SHA for 44ce33a
requake/catalog/read_catalog_from_csv.py
@@ -197,6 +197,8 @@ def read_catalog_from_csv(filename):
197
ev.lat = float_or_none(row[fields['lat']])
198
ev.depth = float_or_none(row[fields['depth']])
199
ev.mag_type = row[fields['mag_type']]
200
+ if ev.mag_type.lower() == 'nan':
201
+ ev.mag_type = 'M'
202
ev.mag = float_or_none(row[fields['mag']])
203
cat.append(ev)
204
print() # needed to add a newline after the last "reading row" message
0 commit comments