From 6d591b4305808532d3f985edc0f6ef80d82a983c Mon Sep 17 00:00:00 2001 From: "Nathaniel Starkman (@nstarman)" Date: Fri, 25 Dec 2020 16:10:43 -0500 Subject: [PATCH] fixes from rename Signed-off-by: Nathaniel Starkman (@nstarman) --- discO/core/sample.py | 2 +- discO/extern/agama/__init__.py | 6 +++--- discO/extern/agama/{sampler.py => sample.py} | 2 +- discO/extern/galpy/__init__.py | 6 +++--- discO/extern/galpy/{sampler.py => sample.py} | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) rename discO/extern/agama/{sampler.py => sample.py} (97%) rename discO/extern/galpy/{sampler.py => sample.py} (98%) diff --git a/discO/core/sample.py b/discO/core/sample.py index f1cf3380..94cb50cc 100644 --- a/discO/core/sample.py +++ b/discO/core/sample.py @@ -288,7 +288,7 @@ def _preferred_frame_resolve(self, frame: T.Optional[FrameLikeType]): For frame is None ``resolve_frame_like`` returns the default frame from the config file. Instead, we want the default - frame of the footprint. + frame of the potential. Returns ------- diff --git a/discO/extern/agama/__init__.py b/discO/extern/agama/__init__.py index 5ef883fb..2ac5a81b 100644 --- a/discO/extern/agama/__init__.py +++ b/discO/extern/agama/__init__.py @@ -10,10 +10,10 @@ # IMPORTS # PROJECT-SPECIFIC -from . import sampler -from .sampler import * # noqa: F401, F403 +from . import sample +from .sample import * # noqa: F401, F403 -__all__ += sampler.__all__ +__all__ += sample.__all__ ############################################################################## diff --git a/discO/extern/agama/sampler.py b/discO/extern/agama/sample.py similarity index 97% rename from discO/extern/agama/sampler.py rename to discO/extern/agama/sample.py index 46d4ad91..39c80451 100644 --- a/discO/extern/agama/sampler.py +++ b/discO/extern/agama/sample.py @@ -21,7 +21,7 @@ # PROJECT-SPECIFIC from discO.common import FrameLikeType, SkyCoordType -from discO.core.sampler import PotentialSampler +from discO.core.sample import PotentialSampler ############################################################################## # CODE diff --git a/discO/extern/galpy/__init__.py b/discO/extern/galpy/__init__.py index fe58b60f..1faa0871 100644 --- a/discO/extern/galpy/__init__.py +++ b/discO/extern/galpy/__init__.py @@ -10,10 +10,10 @@ # IMPORTS # PROJECT-SPECIFIC -from . import sampler -from .sampler import * # noqa: F401, F403 +from . import sample +from .sample import * # noqa: F401, F403 -__all__ += sampler.__all__ +__all__ += sample.__all__ ############################################################################## diff --git a/discO/extern/galpy/sampler.py b/discO/extern/galpy/sample.py similarity index 98% rename from discO/extern/galpy/sampler.py rename to discO/extern/galpy/sample.py index 22013665..80428c08 100644 --- a/discO/extern/galpy/sampler.py +++ b/discO/extern/galpy/sample.py @@ -18,7 +18,7 @@ # PROJECT-SPECIFIC from discO.common import FrameLikeType -from discO.core.sampler import PotentialSampler +from discO.core.sample import PotentialSampler ############################################################################## # CODE