Skip to content

Commit 4848653

Browse files
authored
Merge pull request #9 from virtualcell/fielddata-no-simkey
fix field data fvsolver input file generation with null sim key
2 parents bd31fb6 + 6a993c4 commit 4848653

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "libvcell"
7-
version = "0.0.11"
7+
version = "0.0.12"
88
description = "This is a python package which wraps a subset of VCell Java code as a native python package."
99
authors = ["Jim Schaff <[email protected]>", "Ezequiel Valencia <[email protected]>"]
1010
repository = "https://github.com/virtualcell/libvcell"

vcell-native/src/main/java/org/vcell/libvcell/SolverUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import java.io.ByteArrayInputStream;
3232
import java.io.File;
3333
import java.io.InputStream;
34-
import java.math.BigDecimal;
3534
import java.util.ArrayList;
3635
import java.util.List;
3736

@@ -90,9 +89,10 @@ private static FieldDataIdentifierSpec[] getFieldDataIdentifierSpecs(Simulation
9089
//
9190
// First, check if the resampled field data files are already present (e.g. if pyvcell wrote the files directly from image data)
9291
//
93-
ExternalDataIdentifier fakeExtDataId = new ExternalDataIdentifier(sim.getKey(), User.tempUser, name);
92+
KeyValue random_key = new KeyValue("123456789");
93+
ExternalDataIdentifier fakeExtDataId = new ExternalDataIdentifier(random_key, User.tempUser, name);
9494
String fieldDataFileName = SimulationData.createCanonicalResampleFileName(fakeExtDataId, fieldFuncArg);
95-
fieldDataFileName = fieldDataFileName.replace("SimID_" + sim.getKey().toString() + "_0_", "SimID_SIMULATIONKEY_JOBINDEX_");
95+
fieldDataFileName = fieldDataFileName.replace("SimID_" + random_key + "_0_", "SimID_SIMULATIONKEY_JOBINDEX_");
9696
File preexistingFieldDataFile = new File(outputDir, fieldDataFileName);
9797
if (preexistingFieldDataFile.exists()) {
9898
fdiSpecList.add(new FieldDataIdentifierSpec(fieldFuncArg, fakeExtDataId));

0 commit comments

Comments
 (0)