From 30d02ec36c203c0062b5d2bb405311821b2db30b Mon Sep 17 00:00:00 2001 From: Vilax Date: Fri, 24 Nov 2023 09:53:26 +0100 Subject: [PATCH] associated false --- .../protocol_resolution_local_monotomo.py | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/xmipptomo/protocols/protocol_resolution_local_monotomo.py b/xmipptomo/protocols/protocol_resolution_local_monotomo.py index 68826ba..dd1b2c0 100644 --- a/xmipptomo/protocols/protocol_resolution_local_monotomo.py +++ b/xmipptomo/protocols/protocol_resolution_local_monotomo.py @@ -72,26 +72,26 @@ def __init__(self, **args): def _defineParams(self, form): form.addSection(label='Input') - form.addParam('useIndependentOddEven', BooleanParam, + form.addParam('useAssociatedOddEven', BooleanParam, default=True, label="Are odd-even associated to the Tomograms?", help=" .") form.addParam('tomo', PointerParam, pointerClass='SetOfTomograms', - condition='not useIndependentOddEven', + condition='useAssociatedOddEven', label='Tomograms', important=True, help='Set of tomograms reconstructed from the even frames of the tilt' 'series movies.') form.addParam('oddTomograms', PointerParam, pointerClass='SetOfTomograms', label="Odd tomogram", important=True, - condition='useIndependentOddEven', + condition='not useAssociatedOddEven', help='Select the odd tomogram for determining the ' 'local resolution tomogram.') form.addParam('evenTomograms', PointerParam, pointerClass='SetOfTomograms', label="Even Tomogram", important=True, - condition='useIndependentOddEven', + condition='not useAssociatedOddEven', help='Select the even tomogram for determining the ' 'local resolution tomogram.') @@ -130,7 +130,7 @@ def _insertAllSteps(self): self.min_res_init = Float(self.minRes.get()) self.max_res_init = Float(self.maxRes.get()) - if self.useIndependentOddEven.get(): + if not self.useAssociatedOddEven.get(): for tom_odd, tom_even in zip(self.oddTomograms.get(), self.evenTomograms.get()): if tom_odd.getObjId() == tom_even.getObjId(): tomId = tom_odd.getObjId() @@ -165,7 +165,7 @@ def resolutionMonoTomoStep(self, tomId, inputTomos=None, oddTomos=None, evenTomo the input is not updated during the execution. ''' - if self.useIndependentOddEven.get(): + if not self.useAssociatedOddEven.get(): self.vol1Fn = oddTomos[tomId].getFileName() self.vol2Fn = evenTomos[tomId].getFileName() ts = self.oddTomograms.get()[tomId] @@ -209,7 +209,7 @@ def resolutionMonoTomoStep(self, tomId, inputTomos=None, oddTomos=None, evenTomo outputLocalResolutionSetOfTomograms = self.getOutputLocalResolutionSetOfTomograms() newTomogram = Tomogram() - if self.useIndependentOddEven.get(): + if not self.useAssociatedOddEven.get(): tomo = self.oddTomograms.get()[tomId] else: tomo = self.tomo.get()[tomId] @@ -239,7 +239,7 @@ def createHistrogram(self, tomId): The histogram of local resolution values of the output tomogram is computed ''' - if self.useIndependentOddEven.get(): + if not self.useAssociatedOddEven.get(): ts = self.oddTomograms.get()[tomId] else: ts = self.tomo.get()[tomId] @@ -282,7 +282,7 @@ def getOutputLocalResolutionSetOfTomograms(self): self.outputLocalResolutionSetOfTomograms.enableAppend() else: outputLocalResolutionSetOfTomograms = self._createSetOfTomograms(suffix='LocalResolution') - if self.useIndependentOddEven.get(): + if not self.useAssociatedOddEven.get(): outputLocalResolutionSetOfTomograms.copyInfo(self.oddTomograms.get()) samplingRate = self.oddTomograms.get().getSamplingRate() else: @@ -291,7 +291,7 @@ def getOutputLocalResolutionSetOfTomograms(self): outputLocalResolutionSetOfTomograms.setSamplingRate(samplingRate) outputLocalResolutionSetOfTomograms.setStreamState(Set.STREAM_OPEN) self._defineOutputs(outputLocalResolutionSetOfTomograms=outputLocalResolutionSetOfTomograms) - if self.useIndependentOddEven.get(): + if not self.useAssociatedOddEven.get(): self._defineSourceRelation(self.evenTomograms, outputLocalResolutionSetOfTomograms) self._defineSourceRelation(self.oddTomograms, outputLocalResolutionSetOfTomograms) else: