Skip to content

Commit

Permalink
Remove unneeded import of astropy units
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcraig committed Aug 17, 2023
1 parent b6a1e1f commit 56ece82
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions stellarphot/settings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,12 @@

from enum import Enum

from astropy import units as un

from pydantic import BaseModel, Field, conint, root_validator

from .autowidgets import CustomBoundedIntTex

__all__ = ['ApertureSettings']

class ApertureUnit(Enum):
PIXEL = un.pix
ARCSEC = un.arcsec


class ApertureSettings(BaseModel):
"""
Expand Down
2 changes: 1 addition & 1 deletion stellarphot/settings/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pydantic import ValidationError
import pytest

from stellarphot.settings.models import ApertureSettings, ApertureUnit
from stellarphot.settings.models import ApertureSettings


DEFAULT_APERTURE_SETTINGS = dict(radius=5,
Expand Down

0 comments on commit 56ece82

Please sign in to comment.