Skip to content
Snippets Groups Projects
Commit 1289ab66 authored by Zhou, Wenduo's avatar Zhou, Wenduo
Browse files

Enabled to logarithm binning to resampleX

parent c7b13490
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,15 @@ class RunSetupScript(BaseScriptElement): ...@@ -91,7 +91,15 @@ class RunSetupScript(BaseScriptElement):
pardict["Binning"] = -1.0*abs(self.binning) pardict["Binning"] = -1.0*abs(self.binning)
else: else:
pardict["Binning"] = self.binning pardict["Binning"] = self.binning
pardict["ResampleX"] = str(self.resamplex) if str(self.resamplex) != '':
# ResampleX is used instead binning
resamplex = int(str(self.resamplex))
if self.binningtype == "Logarithmic":
resamplex = -1*abs(resamplex)
else:
resamplex = abs(resamplex)
pardict["ResampleX"] = str(resamplex)
# END-IF
pardict["BinInDspace"] = str(int(self.binindspace)) pardict["BinInDspace"] = str(int(self.binindspace))
pardict["SaveAs"] = self.saveas pardict["SaveAs"] = self.saveas
pardict["OutputDirectory"] = self.outputdir pardict["OutputDirectory"] = self.outputdir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment