Skip to content

Commit 6a412c9

Browse files
committed
Fix issue related to JSONObject migration
1 parent 543aa91 commit 6a412c9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

singlecell/src/org/labkey/singlecell/run/NimbleHelper.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private List<NimbleGenome> getGenomes() throws PipelineJobException
103103
int maxHitsToReport = getProvider().getParameterByName(MAX_HITS_TO_REPORT).extractValue(getPipelineCtx().getJob(), getProvider(), getStepIdx(), Integer.class, 4);
104104
for (int i = 0; i < json.length(); i++)
105105
{
106-
ret.add(new NimbleGenome(json.getString(i), maxHitsToReport));
106+
ret.add(new NimbleGenome(json.getJSONArray(i), maxHitsToReport));
107107
}
108108

109109
return ret;
@@ -564,12 +564,11 @@ private static class NimbleGenome
564564
private final int maxHitsToReport;
565565
private final double scorePercent;
566566

567-
public NimbleGenome(String genomeStr, int maxHitsToReport) throws PipelineJobException
567+
public NimbleGenome(JSONArray arr, int maxHitsToReport) throws PipelineJobException
568568
{
569-
JSONArray arr = new JSONArray(genomeStr);
570569
if (arr.length() < 3)
571570
{
572-
throw new PipelineJobException("Improper genome: " + genomeStr);
571+
throw new PipelineJobException("Improper genome: " + arr.toString());
573572
}
574573

575574
genomeId = arr.getInt(0);

0 commit comments

Comments
 (0)