Skip to content

Commit

Permalink
Renaming dataclasses folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
astronomerritt committed Oct 8, 2024
1 parent 769fb26 commit cb698b5
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/adler/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from . import dataclasses
from . import objectdata
from . import science
from . import utilities
from . import lasair
4 changes: 2 additions & 2 deletions src/adler/adler.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import matplotlib.gridspec as gridspec
import os

from adler.dataclasses.AdlerPlanetoid import AdlerPlanetoid
from adler.dataclasses.AdlerData import AdlerData
from adler.objectdata.AdlerPlanetoid import AdlerPlanetoid
from adler.objectdata.AdlerData import AdlerData
from adler.science.PhaseCurve import PhaseCurve
from adler.science.Colour import col_obs_ref
from adler.utilities.AdlerCLIArguments import AdlerCLIArguments
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
import logging
import json

from adler.dataclasses.Observations import Observations
from adler.dataclasses.MPCORB import MPCORB
from adler.dataclasses.SSObject import SSObject
from adler.dataclasses.AdlerData import AdlerData
from adler.dataclasses.dataclass_utilities import get_data_table
from adler.objectdata.Observations import Observations
from adler.objectdata.MPCORB import MPCORB
from adler.objectdata.SSObject import SSObject
from adler.objectdata.AdlerData import AdlerData
from adler.objectdata.objectdata_utilities import get_data_table

logger = logging.getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from dataclasses import dataclass

from adler.dataclasses.dataclass_utilities import get_from_table, get_from_dictionary
from adler.objectdata.objectdata_utilities import get_from_table, get_from_dictionary

MPCORB_KEYS = {
"mpcDesignation": str,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dataclasses import dataclass, field
import numpy as np

from adler.dataclasses.dataclass_utilities import get_from_table, get_from_dictionary
from adler.objectdata.objectdata_utilities import get_from_table, get_from_dictionary

OBSERVATIONS_KEYS = {
"diaSourceId": np.ndarray,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dataclasses import dataclass, field
import numpy as np

from adler.dataclasses.dataclass_utilities import get_from_table, get_from_dictionary
from adler.objectdata.objectdata_utilities import get_from_table, get_from_dictionary

SSO_KEYS = {
"discoverySubmissionDate": float,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from . import AdlerData
from . import Observations
from . import dataclass_utilities
from . import objectdata_utilities
from . import MPCORB
from . import AdlerPlanetoid
from . import SSObject
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from numpy.testing import assert_array_equal

from adler.dataclasses.AdlerData import AdlerData
from adler.objectdata.AdlerData import AdlerData
from adler.utilities.tests_utilities import get_test_data_filepath

# setting up the AdlerData object to be used for testing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from numpy.testing import assert_almost_equal

from adler.utilities.tests_utilities import get_test_data_filepath
from adler.dataclasses.AdlerPlanetoid import AdlerPlanetoid
from adler.objectdata.AdlerPlanetoid import AdlerPlanetoid


ssoid = 8268570668335894776
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from numpy.testing import assert_almost_equal
import numpy as np

from adler.dataclasses.MPCORB import MPCORB
from adler.dataclasses.dataclass_utilities import get_data_table
from adler.objectdata.MPCORB import MPCORB
from adler.objectdata.objectdata_utilities import get_data_table
from adler.utilities.tests_utilities import get_test_data_filepath


Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from numpy.testing import assert_almost_equal
import numpy as np

from adler.dataclasses.Observations import Observations
from adler.dataclasses.dataclass_utilities import get_data_table
from adler.objectdata.Observations import Observations
from adler.objectdata.objectdata_utilities import get_data_table
from adler.utilities.tests_utilities import get_test_data_filepath


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import numpy as np

from adler.utilities.tests_utilities import get_test_data_filepath
from adler.dataclasses.dataclass_utilities import get_data_table
from adler.dataclasses.SSObject import SSObject
from adler.objectdata.objectdata_utilities import get_data_table
from adler.objectdata.SSObject import SSObject


def test_construct_SSObject_from_data_table():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from pandas.testing import assert_frame_equal
from numpy.testing import assert_equal

from adler.dataclasses.dataclass_utilities import get_data_table
from adler.dataclasses.dataclass_utilities import get_from_table
from adler.dataclasses.dataclass_utilities import check_value_populated
from adler.objectdata.objectdata_utilities import get_data_table
from adler.objectdata.objectdata_utilities import get_from_table
from adler.objectdata.objectdata_utilities import check_value_populated
from adler.utilities.tests_utilities import get_test_data_filepath


Expand Down
4 changes: 2 additions & 2 deletions tests/adler/science/test_Colour.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

from adler.science.Colour import col_obs_ref
from adler.utilities.tests_utilities import get_test_data_filepath
from adler.dataclasses.AdlerPlanetoid import AdlerPlanetoid
from adler.dataclasses.AdlerData import AdlerData
from adler.objectdata.AdlerPlanetoid import AdlerPlanetoid
from adler.objectdata.AdlerData import AdlerData
from adler.science.PhaseCurve import PhaseCurve
from adler.utilities.science_utilities import get_df_obs_filt

Expand Down

0 comments on commit cb698b5

Please sign in to comment.