Skip to content

Commit

Permalink
Merge pull request #1358 from virtualcell/quick-n5-fix
Browse files Browse the repository at this point in the history
Human Readable Passes Dimension Info to its Spec
  • Loading branch information
AvocadoMoon authored Sep 25, 2024
2 parents 3fe68ce + db30be5 commit a4e4bdb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ public class ExportHumanReadableDataSpec {
public String applicationType;
public boolean nonSpatial;
public HashMap<Integer, String> subVolume;
public int zSlices;
public int tSlices;
public int numChannels;

public ExportHumanReadableDataSpec(String bioModelName, String applicationName, String simulationName,
ArrayList<String> differentParameterValues,
String serverSavedFileName, String applicationType, boolean nonSpatial, HashMap<Integer, String> subVolume){
String serverSavedFileName, String applicationType, boolean nonSpatial, HashMap<Integer, String> subVolume,
int zSlices, int tSlices, int numChannels){
this.bioModelName = bioModelName;
this.applicationName = applicationName;
this.simulationName = simulationName;
Expand All @@ -24,6 +28,9 @@ public ExportHumanReadableDataSpec(String bioModelName, String applicationName,
this.applicationType = applicationType;
this.nonSpatial = nonSpatial;
this.subVolume = subVolume;
this.zSlices = zSlices;
this.tSlices = tSlices;
this.numChannels = numChannels;
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,15 @@ public HumanReadableExportData(String simulationName, String applicationName, St
}

public ExportHumanReadableDataSpec toJsonRep() {
return new ExportHumanReadableDataSpec(biomodelName, applicationName, simulationName, differentParameterValues, serverSavedFileName, applicationType, nonSpatial, subVolume);
return new ExportHumanReadableDataSpec(biomodelName, applicationName, simulationName, differentParameterValues, serverSavedFileName, applicationType, nonSpatial, subVolume,
zSlices, tSlices, numChannels);
}
public static HumanReadableExportData fromJsonRep(ExportHumanReadableDataSpec rep) {
return new HumanReadableExportData(rep.simulationName, rep.applicationName, rep.bioModelName, rep.differentParameterValues,
HumanReadableExportData hre = new HumanReadableExportData(rep.simulationName, rep.applicationName, rep.bioModelName, rep.differentParameterValues,
rep.serverSavedFileName, rep.applicationType, rep.nonSpatial, rep.subVolume);
hre.zSlices = rep.zSlices;
hre.tSlices = rep.tSlices;
hre.numChannels = rep.numChannels;
return hre;
}
}

0 comments on commit a4e4bdb

Please sign in to comment.