Skip to content

Commit

Permalink
Remove unnecessary 1 line functions
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Jul 31, 2024
1 parent bcfa6ca commit 815ccfa
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions brainglobe_utils/brainmapper/transform_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 815ccfa

Please sign in to comment.