Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
baltzell committed Aug 23, 2024
1 parent d9f1144 commit e4ebfd2
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ private void processEventHelicity(Event event, Bank runConfig, Bank recEvent) {
if (helScaler.getRows()>0) {
event.remove(schemaFactory.getSchema("HEL::scaler"));
Util.assignScalerHelicity(runConfig.getLong("timestamp",0), helScaler, helicitySequence);
//Util.assignScalerHelicity(runConfig.getLong("timestamp",0), ((HipoDataBank)helScaler).getBank(), helicitySequence);
event.write(helScaler);
}
}
Expand Down Expand Up @@ -199,7 +198,7 @@ public void processEvent(Event e) {
* @param preloadFiles
* @return map of rebuilt:preload files
*/
public Map<String,String> rebuild(String dir, List<String> preloadFiles) {
private Map<String,String> rebuild(String dir, List<String> preloadFiles) {
File d = new File(dir);
if (!d.canWrite()) {
throw new RuntimeException("No write permissions on "+dir);
Expand All @@ -217,7 +216,7 @@ public Map<String,String> rebuild(String dir, List<String> preloadFiles) {
* Replace files with new ones.
* @param files map of new:old filenames
*/
public static void replace(Map<String,String> files) {
private static void replace(Map<String,String> files) {
for (String rebuiltFile : files.keySet()) {
new File(files.get(rebuiltFile)).delete();
new File(rebuiltFile).renameTo(new File(files.get(rebuiltFile)));
Expand All @@ -227,7 +226,7 @@ public static void replace(Map<String,String> files) {
/**
* Replace preload files with rebuilt ones.
*/
public void rebuildAndReplace(List<String> preloadFiles) {
private void rebuildAndReplace(List<String> preloadFiles) {
replace(rebuild(".",preloadFiles));
}

Expand Down

0 comments on commit e4ebfd2

Please sign in to comment.