Skip to content

Commit a4e4bdb

Browse files
Merge pull request #1358 from virtualcell/quick-n5-fix
Human Readable Passes Dimension Info to its Spec
2 parents 3fe68ce + db30be5 commit a4e4bdb

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

vcell-apiclient/src/main/java/org/vcell/api/common/events/ExportHumanReadableDataSpec.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ public class ExportHumanReadableDataSpec {
1212
public String applicationType;
1313
public boolean nonSpatial;
1414
public HashMap<Integer, String> subVolume;
15+
public int zSlices;
16+
public int tSlices;
17+
public int numChannels;
1518

1619
public ExportHumanReadableDataSpec(String bioModelName, String applicationName, String simulationName,
1720
ArrayList<String> differentParameterValues,
18-
String serverSavedFileName, String applicationType, boolean nonSpatial, HashMap<Integer, String> subVolume){
21+
String serverSavedFileName, String applicationType, boolean nonSpatial, HashMap<Integer, String> subVolume,
22+
int zSlices, int tSlices, int numChannels){
1923
this.bioModelName = bioModelName;
2024
this.applicationName = applicationName;
2125
this.simulationName = simulationName;
@@ -24,6 +28,9 @@ public ExportHumanReadableDataSpec(String bioModelName, String applicationName,
2428
this.applicationType = applicationType;
2529
this.nonSpatial = nonSpatial;
2630
this.subVolume = subVolume;
31+
this.zSlices = zSlices;
32+
this.tSlices = tSlices;
33+
this.numChannels = numChannels;
2734
}
2835

2936

vcell-core/src/main/java/cbit/vcell/export/server/HumanReadableExportData.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,15 @@ public HumanReadableExportData(String simulationName, String applicationName, St
3434
}
3535

3636
public ExportHumanReadableDataSpec toJsonRep() {
37-
return new ExportHumanReadableDataSpec(biomodelName, applicationName, simulationName, differentParameterValues, serverSavedFileName, applicationType, nonSpatial, subVolume);
37+
return new ExportHumanReadableDataSpec(biomodelName, applicationName, simulationName, differentParameterValues, serverSavedFileName, applicationType, nonSpatial, subVolume,
38+
zSlices, tSlices, numChannels);
3839
}
3940
public static HumanReadableExportData fromJsonRep(ExportHumanReadableDataSpec rep) {
40-
return new HumanReadableExportData(rep.simulationName, rep.applicationName, rep.bioModelName, rep.differentParameterValues,
41+
HumanReadableExportData hre = new HumanReadableExportData(rep.simulationName, rep.applicationName, rep.bioModelName, rep.differentParameterValues,
4142
rep.serverSavedFileName, rep.applicationType, rep.nonSpatial, rep.subVolume);
43+
hre.zSlices = rep.zSlices;
44+
hre.tSlices = rep.tSlices;
45+
hre.numChannels = rep.numChannels;
46+
return hre;
4247
}
4348
}

0 commit comments

Comments
 (0)