Skip to content

Commit

Permalink
suppress irrelevant messages
Browse files Browse the repository at this point in the history
  • Loading branch information
xspanger3770 committed Nov 10, 2023
1 parent 92cd746 commit f9f2666
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ COPY Container ./.GlobalQuakeServerData
COPY GQHypocenterSearch/build/lib ./lib

# Run GQ Server
CMD ["java", "-jar", "-Dtinylog.writer.level=debug", "-Djava.library.path=./lib", "GlobalQuakeServer_v0.10.0_pre5.jar", "--headless"]
CMD ["java", "-jar", "-Djava.library.path=./lib", "GlobalQuakeServer_v0.10.0_pre5.jar", "--headless"]
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import globalquake.core.training.EarthquakeAnalysisTraining;
import globalquake.jni.GQNativeFunctions;
import globalquake.utils.GeoUtils;
import org.tinylog.Logger;

import java.util.List;

Expand All @@ -25,16 +26,16 @@ public class GQHypocs {
initCuda();
EarthquakeAnalysisTraining.hypocenterDetectionResolutionMax = 1000;
} catch(UnsatisfiedLinkError e){
System.err.println("Failed to load CUDA: "+e.getMessage());
Logger.warn("Failed to load or init CUDA: %s".formatted(e.getMessage()));
}

for(int i = 0; i < depth_profiles.length; i++){
System.err.printf("Iteration #%d difficulty: %.2fK%n", i, 750.0 / depth_profiles[i] * point_profiles[i] / 1000.0);
Logger.debug("Iteration #%d difficulty: %.2fK%n", i, 750.0 / depth_profiles[i] * point_profiles[i] / 1000.0);
}

for(int i = 0; i < depth_profiles.length; i++) {
double distKM = dist_profiles[i] / 360.0* GeoUtils.EARTH_CIRCUMFERENCE;
System.err.printf("Iteration #%d space H %.2fkm V %fkm%n", i, Math.sqrt((distKM * distKM) / point_profiles[i]), depth_profiles[i]);
Logger.debug("Iteration #%d space H %.2fkm V %fkm%n", i, Math.sqrt((distKM * distKM) / point_profiles[i]), depth_profiles[i]);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.function.Function;

@SuppressWarnings("unused")
public class EarthquakeAnalysisTraining {
Expand Down Expand Up @@ -136,8 +135,8 @@ public static long runTest(long seed, int stations) {

earthquakeAnalysis.processCluster(cluster, pickedEvents);

Logger.warn("Shouldve been " + absolutetyCorrect);
Logger.warn("Got " + cluster.getPreviousHypocenter());
Logger.debug("Shouldve been " + absolutetyCorrect);
Logger.debug("Got " + cluster.getPreviousHypocenter());

if(cluster.getEarthquake()!=null) {
double dist = GeoUtils.greatCircleDistance(cluster.getEarthquake().getLat(), cluster.getEarthquake().getLon(), absolutetyCorrect.lat, absolutetyCorrect.lon);
Expand Down

0 comments on commit f9f2666

Please sign in to comment.