diff --git a/brainglobe_utils/brainmapper/transform_widget.py b/brainglobe_utils/brainmapper/transform_widget.py index d88bc24..ce8733b 100644 --- a/brainglobe_utils/brainmapper/transform_widget.py +++ b/brainglobe_utils/brainmapper/transform_widget.py @@ -414,18 +414,11 @@ def initialise_brainreg_data(self) -> None: Initialize brainreg data by defining the paths, then loading the brainreg metadata, and then the atlas. """ - self.get_brainreg_paths() + self.paths = Paths(self.brainreg_directory) self.check_brainreg_directory() - self.get_registration_metadata() + self.metadata = Metadata(self.brainreg_metadata) self.load_atlas() - def get_brainreg_paths(self) -> None: - """ - Get the relevant file paths from the brainreg - output directory chosen by the user - """ - self.paths = Paths(self.brainreg_directory) - def check_brainreg_directory(self) -> None: """ Check if the selected directory is a valid brainreg directory @@ -453,13 +446,6 @@ def display_brainreg_directory_warning(self) -> None: "directory. Please try loading another brainreg output directory.", ) - def get_registration_metadata(self) -> None: - """ - Load registration metadata (atlas, orientation, voxel sizes) - from the brainreg directory. - """ - self.metadata = Metadata(self.brainreg_metadata) - def load_atlas(self) -> None: """ Load the BrainGlobe atlas used for the initial brainreg registration.