Skip to content
Snippets Groups Projects
Commit e60ebe52 authored by Powers, Peter M.'s avatar Powers, Peter M.
Browse files

more cleanup

parent 7cb880d7
No related branches found
No related tags found
1 merge request!239Lib updates
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment