Skip to content

Commit

Permalink
Merge pull request #1843 from melissalinkert/metamorph-backports
Browse files Browse the repository at this point in the history
Metamorph: fix Z and T settings when the .nd file is inconsistent
  • Loading branch information
melissalinkert committed Jun 24, 2015
2 parents 07f6ece + ad0342a commit c187ec9
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -499,6 +499,12 @@ else if (key.equals("DoZSeries")) {
currentValue.append(line.substring(comma + 1).trim());
}

if (!globalDoZ) {
for (int i=0; i<hasZ.size(); i++) {
hasZ.set(i, false);
}
}

// figure out how many files we need

if (z != null) zc = Integer.parseInt(z);
Expand All @@ -512,6 +518,9 @@ else if (!doTimelapse) {
if (cc == 1 && bizarreMultichannelAcquisition) {
cc = 2;
}
if (tc == 0) {
tc = 1;
}

int numFiles = cc * tc;
if (nstages > 0) numFiles *= nstages;
Expand Down

0 comments on commit c187ec9

Please sign in to comment.