Commit 09dca4ac authored by Henri Payno's avatar Henri Payno
Browse files

fix typo slice_indexes vs slice_index. slice index was never loaded so middle...

fix typo slice_indexes vs slice_index. slice index was never loaded so middle slice was always reconstructed
parent 16235cfe
......@@ -252,7 +252,7 @@ class _SAAxisTabWidget(qt.QTabWidget):
return {
"research_width": self.getResearchWidth(),
"n_reconstruction": self.getNReconstruction(),
"slice_indexes": self.getReconstructionSlices(),
"slice_index": self.getReconstructionSlices(),
"nabu_params": nabu_config,
"mode": self.getReconstructionMode().value,
"score_method": self.getScoreMethod().value,
......@@ -277,7 +277,7 @@ class _SAAxisTabWidget(qt.QTabWidget):
estimated_cor = config.get("estimated_cor", None)
if estimated_cor is not None:
self.setEstimatedCorPosition(estimated_cor)
slice_indexes = config.get("slice_indexes", None)
slice_indexes = config.get("slice_index", None)
if slice_indexes is not None:
self.setReconstructionSlices(slice_indexes)
if "nabu_params" in config:
......
......@@ -187,7 +187,7 @@ class TestSAAxisWindow(TestCaseQt):
"""Insure configuration setter works"""
self._window.setSlicesRange(0, 20)
configuration = {
"slice_indexes": {"Slice": 2},
"slice_index": {"Slice": 2},
"estimated_cor": 0.24,
"research_width": 0.8,
"n_reconstruction": 5,
......@@ -195,7 +195,7 @@ class TestSAAxisWindow(TestCaseQt):
self._window.setConfiguration(configuration)
res_conf = self._window.getConfiguration()
for key in (
"slice_indexes",
"slice_index",
"estimated_cor",
"research_width",
"n_reconstruction",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment