Skip to content
Snippets Groups Projects

Lib updates

Merged Powers, Peter M. requested to merge ghsc/users/pmpowers/nshmp-lib:lib-updates into main
1 file
+ 0
55
Compare changes
  • Side-by-side
  • Inline
@@ -303,61 +303,6 @@ public final class HazardExport {
}
}
/*
* Write the current list of {@code Disaggregation}s to file.
*/
// @Deprecated
// private void writeDisagg(Disaggregation disagg) throws IOException {
//
// /*
// * Writing of Hazard results will have already created necessary Imt, Gmm,
// * and SourceType directories.
// */
// String name = namedSites ? disagg.site.name() :
// lonLatStr(disagg.site.location());
// for (Entry<Imt, ImtDisagg> imtEntry : disagg.disaggs.entrySet()) {
//
// /* Write total dataset. */
// ImtDisagg imtDisagg = imtEntry.getValue();
// DisaggDataset ddTotal = imtDisagg.totalDataset;
// DisaggConfig dc = imtDisagg.config;
// DisaggExport exporter = new DisaggExport(ddTotal, ddTotal, dc, "Total",
// false, true, true);
// Path imtDir = dir.resolve(imtEntry.getKey().name());
// Path totalDir = imtDir.resolve(DISAGG_DIR);
// Files.createDirectories(totalDir);
// exporter.toFile(totalDir, name);
//
// if (exportSource) {
// for (Entry<SourceType, DisaggDataset> typeEntry :
// imtDisagg.typeDatasets.entrySet()) {
// SourceType type = typeEntry.getKey();
// Path typeDir = imtDir.resolve(TYPE_DIR)
// .resolve(type.name())
// .resolve(DISAGG_DIR);
// DisaggDataset ddType = typeEntry.getValue();
// exporter = new DisaggExport(ddTotal, ddType, dc, type.toString(), false,
// true, true);
// exporter.toFile(typeDir, name);
// }
// }
//
// if (exportGmm) {
// for (Entry<Gmm, DisaggDataset> gmmEntry : imtDisagg.gmmDatasets.entrySet())
// {
// Gmm gmm = gmmEntry.getKey();
// Path gmmDir = imtDir.resolve(GMM_DIR)
// .resolve(gmm.name())
// .resolve(DISAGG_DIR);
// DisaggDataset ddGmm = gmmEntry.getValue();
// exporter = new DisaggExport(ddTotal, ddGmm, dc, gmm.toString(), false,
// true, true);
// exporter.toFile(gmmDir, name);
// }
// }
// }
// }
private static String valueStr(
XySequence curve,
Function<Double, String> formatter) {
Loading