Skip to content

Update output directory and file structure

Created by: pmpowers-usgs

The HazardCalcand DeaggCalc programs currently output results with a little more nesting than is necessary. Whereas deaggs create output directories for each GMM as necessary, the corresponding hazard curves are one level up. Given we are adding deagregation by source type in #266 (closed), it makes sense to structure output as follows:

hazout/ (default changed from 'curves')
   |--- IMT/ (same as before)
   |--- IMT/
      |--- curves.csv (changed from 'total.csv')
      |--- source/
         |--- FAULT/
            |--- curves.csv
            |--- deagg/
               |--- sitename/
                  |--- data.csv
                  |--- summary.txt
         |--- INTERFACE/
         |--- ...
      |--- gmm/
         |--- CB_14/
            |--- curves.csv
            |--- deagg/
               |--- sitename/
                  |--- data.csv
                  |--- summary.txt
         |--- ...