Skip to content
Snippets Groups Projects
Commit b9375596 authored by Jerome Lesaint's avatar Jerome Lesaint
Browse files

Pylint: detected_folders in base class FluoTomoScanBase

parent e6b990b9
No related branches found
No related tags found
1 merge request!248WIP: Add handling of 2D XRFDATA. Angles in 2D still to handle
Pipeline #216109 failed
"""module dedicated to esrf scans""" """module dedicated to esrf scans"""
from .scan.edfscan import EDFTomoScan # noqa F401 from .scan.edfscan import EDFTomoScan # noqa F401
from .scan.fluoscan import FluoTomoScan # noqa F401 from .scan.fluoscan import FluoTomoScan3D # noqa F401
from .scan.fluoscan import FluoTomoScan2D # noqa F401
from .scan.nxtomoscan import NXtomoScan # noqa F401 from .scan.nxtomoscan import NXtomoScan # noqa F401
from .scan.nxtomoscan import HDF5TomoScan # noqa F401 from .scan.nxtomoscan import HDF5TomoScan # noqa F401
from .volume.edfvolume import EDFVolume # noqa F401 from .volume.edfvolume import EDFVolume # noqa F401
......
...@@ -58,6 +58,7 @@ class FluoTomoScanBase: ...@@ -58,6 +58,7 @@ class FluoTomoScanBase:
el_lines: dict[str, list[str]] = field(default_factory=dict) el_lines: dict[str, list[str]] = field(default_factory=dict)
pixel_size: float | None = None pixel_size: float | None = None
energy: float | None = None energy: float | None = None
detected_folders: list[str] = []
def __post_init__(self): def __post_init__(self):
self.detected_detectors = tuple(self.detect_detectors()) self.detected_detectors = tuple(self.detect_detectors())
...@@ -72,6 +73,7 @@ class FluoTomoScanBase: ...@@ -72,6 +73,7 @@ class FluoTomoScanBase:
) )
self.detect_elements() self.detect_elements()
@property @property
def rot_angles_deg(self) -> NDArray: def rot_angles_deg(self) -> NDArray:
if self.angles is None: if self.angles is None:
...@@ -288,8 +290,6 @@ class FluoTomoScan3D(FluoTomoScanBase): ...@@ -288,8 +290,6 @@ class FluoTomoScan3D(FluoTomoScanBase):
raise NotImplementedError("Not implemented for fluo-tomo yet.") raise NotImplementedError("Not implemented for fluo-tomo yet.")
FluoTomoScan = FluoTomoScan3D
@dataclass @dataclass
class FluoTomoScan2D(FluoTomoScanBase): class FluoTomoScan2D(FluoTomoScanBase):
......
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