Skip to content

Commit

Permalink
Fix circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
aymgal committed Nov 16, 2023
1 parent ae8493f commit e5b7539
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions coolest/api/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# from astropy.coordinates import SkyCoord
from skimage import measure

from coolest.template.json import JSONSerializer


def convert_image_to_data_units(image, pixel_size, mag_tot, mag_zero_point):
"""
Expand All @@ -28,6 +26,7 @@ def convert_image_to_data_units(image, pixel_size, mag_tot, mag_zero_point):


def get_coolest_object(file_path, verbose=False, **kwargs_serializer):
from coolest.template.json import JSONSerializer # prevents circular imports
if not os.path.isabs(file_path):
file_path = os.path.abspath(file_path)
serializer = JSONSerializer(file_path, **kwargs_serializer)
Expand Down

0 comments on commit e5b7539

Please sign in to comment.