Skip to content

Commit 2da566c

Browse files
authored
Merge pull request #328 from bls337/main
forgot to remove code that used the stack processor
2 parents 7741a55 + 6f815e2 commit 2da566c

File tree

3 files changed

+31
-43
lines changed

3 files changed

+31
-43
lines changed

src/main/java/org/micromanager/lightsheetmanager/gui/tabs/channels/ChannelTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ public String[] getAvailableGroups() {
108108
ArrayList<String> strGroups = new ArrayList<>();
109109
// strGroups.add("None");
110110
for (String group : groups) {
111-
// System.out.println("grp: " + group);
112111
// StrVector st = model_.studio().core().getAvailableConfigGroups();
113112
// for (String s : st)
114113
// System.out.println(s);
114+
// a channel group must have multiple presets to be detected
115115
if (model_.studio().core().getAvailableConfigs(group).size() > 1) {
116116
strGroups.add(group);
117117
}

src/main/java/org/micromanager/lightsheetmanager/model/acquisitions/AcquisitionEngineDISPIM.java

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -245,27 +245,21 @@ boolean run() {
245245

246246

247247

248-
249-
if (projectionMode) {
250-
// DiSPIM always uses 45 degrees
251-
double theta = Math.PI / 4;
252-
double zStep = acqSettings_.volumeSettings().sliceStepSize();
253-
int numZSlices = acqSettings_.volumeSettings().slicesPerView();
254-
int cameraWidth = (int) core_.getImageWidth();
255-
int cameraHeight = (int) core_.getImageHeight();
256-
double pixelSizeXYUm = core_.getPixelSizeUm();
257-
258-
int numUniqueProcessorsNeeded = 2; // Always keep enough around for 2 views
259-
if (acqSettings_.isUsingChannels()) {
260-
numUniqueProcessorsNeeded *= acqSettings_.channels().length;
261-
}
262-
263-
AcqEngJStackProcessors proc =
264-
new AcqEngJStackProcessors(ObliqueStackProcessor.YX_PROJECTION, theta,
265-
pixelSizeXYUm,
266-
zStep, numZSlices, cameraWidth, cameraHeight, numUniqueProcessorsNeeded);
267-
currentAcquisition_.addImageProcessor(proc);
268-
}
248+
// TODO: how much of this do we need? use the projector plugin...
249+
// if (projectionMode) {
250+
// // DiSPIM always uses 45 degrees
251+
// double theta = Math.PI / 4;
252+
// double zStep = acqSettings_.volumeSettings().sliceStepSize();
253+
// int numZSlices = acqSettings_.volumeSettings().slicesPerView();
254+
// int cameraWidth = (int) core_.getImageWidth();
255+
// int cameraHeight = (int) core_.getImageHeight();
256+
// double pixelSizeXYUm = core_.getPixelSizeUm();
257+
//
258+
// int numUniqueProcessorsNeeded = 2; // Always keep enough around for 2 views
259+
// if (acqSettings_.isUsingChannels()) {
260+
// numUniqueProcessorsNeeded *= acqSettings_.channels().length;
261+
// }
262+
// }
269263

270264
long acqButtonStart = System.currentTimeMillis();
271265

src/main/java/org/micromanager/lightsheetmanager/model/acquisitions/AcquisitionEngineSCAPE.java

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -283,27 +283,21 @@ boolean run() {
283283

284284

285285

286-
287-
if (projectionMode) {
288-
// DiSPIM always uses 45 degrees
289-
double theta = Math.PI / 4;
290-
double zStep = acqSettings_.volumeSettings().sliceStepSize();
291-
int numZSlices = acqSettings_.volumeSettings().slicesPerView();
292-
int cameraWidth = (int) core_.getImageWidth();
293-
int cameraHeight = (int) core_.getImageHeight();
294-
double pixelSizeXYUm = core_.getPixelSizeUm();
295-
296-
int numUniqueProcessorsNeeded = 2; // Always keep enough around for 2 views
297-
if (acqSettings_.isUsingChannels()) {
298-
numUniqueProcessorsNeeded *= acqSettings_.channels().length;
299-
}
300-
301-
AcqEngJStackProcessors proc =
302-
new AcqEngJStackProcessors(ObliqueStackProcessor.YX_PROJECTION, theta,
303-
pixelSizeXYUm,
304-
zStep, numZSlices, cameraWidth, cameraHeight, numUniqueProcessorsNeeded);
305-
currentAcquisition_.addImageProcessor(proc);
306-
}
286+
// TODO: how much of this do we need? use the projector plugin...
287+
// if (projectionMode) {
288+
// // DiSPIM always uses 45 degrees
289+
// double theta = Math.PI / 4;
290+
// double zStep = acqSettings_.volumeSettings().sliceStepSize();
291+
// int numZSlices = acqSettings_.volumeSettings().slicesPerView();
292+
// int cameraWidth = (int) core_.getImageWidth();
293+
// int cameraHeight = (int) core_.getImageHeight();
294+
// double pixelSizeXYUm = core_.getPixelSizeUm();
295+
//
296+
// int numUniqueProcessorsNeeded = 2; // Always keep enough around for 2 views
297+
// if (acqSettings_.isUsingChannels()) {
298+
// numUniqueProcessorsNeeded *= acqSettings_.channels().length;
299+
// }
300+
// }
307301

308302
long acqButtonStart = System.currentTimeMillis();
309303

0 commit comments

Comments
 (0)