Skip to content

Commit

Permalink
fixing path issue with splitting by /
Browse files Browse the repository at this point in the history
  • Loading branch information
Kendra Johnson authored and Kendra Johnson committed Apr 4, 2024
1 parent 5e3b5e5 commit e3a7a54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openquake/mbt/tools/mfd_sample/make_mfds.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ def _create_catalogue_versions(catfi, outdir, numcats=None, stype='random',
tmps += '\n Overwriting files.'
print(tmps)
# sys.exit(1)
#else:
os.makedirs(outdir)
else:
os.makedirs(outdir)

csvout = os.path.join(outdir, 'v{}_'+catfi.split('/')[-1])
csvout = os.path.join(outdir, 'v{}_catalogue.pkl')
fileout = os.path.join(outdir, 'v_mags.csv')
factors = np.arange(-1,1,0.1)

Expand Down

0 comments on commit e3a7a54

Please sign in to comment.