Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled autopep8 formatting of relative import lines #331

Merged
merged 2 commits into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 21 additions & 17 deletions simpa/core/device_digital_twins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from simpa.utils.serializer import SerializableSIMPAClass
from simpa.utils.calculate import are_equal


class DigitalDeviceTwinBase(SerializableSIMPAClass):
"""
This class represents a device that can be used for illumination, detection or a combined photoacoustic device
Expand Down Expand Up @@ -130,20 +131,23 @@ def deserialize(dictionary_to_deserialize):
field_of_view_extent_mm=dictionary_to_deserialize["field_of_view_extent_mm"])
return deserialized_device

from .pa_devices import PhotoacousticDevice
from simpa.core.device_digital_twins.detection_geometries import DetectionGeometryBase
from simpa.core.device_digital_twins.illumination_geometries import IlluminationGeometryBase
from .detection_geometries.curved_array import CurvedArrayDetectionGeometry
from .detection_geometries.linear_array import LinearArrayDetectionGeometry
from .detection_geometries.planar_array import PlanarArrayDetectionGeometry
from .illumination_geometries.slit_illumination import SlitIlluminationGeometry
from .illumination_geometries.gaussian_beam_illumination import GaussianBeamIlluminationGeometry
from .illumination_geometries.pencil_array_illumination import PencilArrayIlluminationGeometry
from .illumination_geometries.pencil_beam_illumination import PencilBeamIlluminationGeometry
from .illumination_geometries.disk_illumination import DiskIlluminationGeometry
from .illumination_geometries.rectangle_illumination import RectangleIlluminationGeometry
from .illumination_geometries.ithera_msot_acuity_illumination import MSOTAcuityIlluminationGeometry
from .illumination_geometries.ithera_msot_invision_illumination import MSOTInVisionIlluminationGeometry
from .pa_devices.ithera_msot_invision import InVision256TF
from .pa_devices.ithera_msot_acuity import MSOTAcuityEcho
from .pa_devices.ithera_rsom import RSOMExplorerP50
"""
It is important to have these relative imports after the definition of the DigitalDeviceTwinBase class to avoid circular imports triggered by imported child classes
"""
from .pa_devices import PhotoacousticDevice # nopep8
from simpa.core.device_digital_twins.detection_geometries import DetectionGeometryBase # nopep8
from simpa.core.device_digital_twins.illumination_geometries import IlluminationGeometryBase # nopep8
from .detection_geometries.curved_array import CurvedArrayDetectionGeometry # nopep8
from .detection_geometries.linear_array import LinearArrayDetectionGeometry # nopep8
from .detection_geometries.planar_array import PlanarArrayDetectionGeometry # nopep8
from .illumination_geometries.slit_illumination import SlitIlluminationGeometry # nopep8
from .illumination_geometries.gaussian_beam_illumination import GaussianBeamIlluminationGeometry # nopep8
from .illumination_geometries.pencil_array_illumination import PencilArrayIlluminationGeometry # nopep8
from .illumination_geometries.pencil_beam_illumination import PencilBeamIlluminationGeometry # nopep8
from .illumination_geometries.disk_illumination import DiskIlluminationGeometry # nopep8
from .illumination_geometries.rectangle_illumination import RectangleIlluminationGeometry # nopep8
from .illumination_geometries.ithera_msot_acuity_illumination import MSOTAcuityIlluminationGeometry # nopep8
from .illumination_geometries.ithera_msot_invision_illumination import MSOTInVisionIlluminationGeometry # nopep8
from .pa_devices.ithera_msot_invision import InVision256TF # nopep8
from .pa_devices.ithera_msot_acuity import MSOTAcuityEcho # nopep8
from .pa_devices.ithera_rsom import RSOMExplorerP50 # nopep8
Loading