From ca588fefd4c09e0db77af48dfee8de65665bfb31 Mon Sep 17 00:00:00 2001 From: AndreasH96 Date: Mon, 24 Feb 2025 14:08:45 +0100 Subject: [PATCH 1/2] updated environment.yaml to python 3.12 --- environment.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/environment.yml b/environment.yml index 8fb1b7ad..fd9d21a4 100644 --- a/environment.yml +++ b/environment.yml @@ -2,20 +2,20 @@ name: paseos channels: - conda-forge dependencies: - - dotmap>=1.3.30 # core non-optional dependency - - loguru>=0.6.0 # core non-optional dependency - - matplotlib>=3.6.0 # core non-optional dependency - - numpy==1.23.5 # core non-optional depedency - - myst-parser # for markdown math in docs - - pykep>=2.6 # core non-optional dependency - - pyquaternion>=0.9.9 # core non-optional dependency - - pytest # for tests - - pytest-asyncio # for tests involving activities - - python>=3.8 # core non-optional dependency - - scikit-spatial>=6.5.0 # core non-optional dependency - - skyfield>=1.45 # core non-optional dependency - - sphinx # for docs - - sphinx_rtd_theme # for docs - - toml>=0.10.2 # core non-optional dependency - - tqdm>=4.64.1 # core non-optional dependency - - trimesh>=4.0.7 # for geometric model \ No newline at end of file + - python>=3.12 # Updated to support Python 3.12 + - dotmap>=1.3.30 # Core non-optional dependency + - loguru>=0.6.0 # Core non-optional dependency + - matplotlib==3.10.0 # Core non-optional dependency + - numpy>=1.26.0 # Updated to latest major version for Python 3.12 + - myst-parser # For markdown math in docs + - pyquaternion>=0.9.9 # Core non-optional dependency + - pytest # For tests + - pytest-asyncio # For tests involving async activities + - scikit-spatial>=6.8.1 # Core non-optional dependency + - skyfield>=1.45 # Core non-optional dependency + - sphinx # For docs + - sphinx_rtd_theme # For docs + - toml>=0.10.2 # Core non-optional dependency + - tqdm>=4.64.1 # Core non-optional dependency + - trimesh>=4.0.7 # For geometric model + - pykep==2.6.4 \ No newline at end of file From a9c54636f836d2590c339c4170794b3dcb08dede Mon Sep 17 00:00:00 2001 From: AndreasH96 Date: Mon, 24 Feb 2025 14:59:10 +0100 Subject: [PATCH 2/2] updated environment.yaml to python 3.12 --- paseos/central_body/central_body.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paseos/central_body/central_body.py b/paseos/central_body/central_body.py index d844525f..26837b55 100644 --- a/paseos/central_body/central_body.py +++ b/paseos/central_body/central_body.py @@ -98,7 +98,7 @@ def blocks_sun(self, actor, t: pk.epoch, plot=False) -> bool: Returns: bool: True if the central body blocks the sun """ - logger.debug(f"Checking whether {actor} is in eclipse at {t}.") + logger.debug(f"Checking whether {actor} is in eclipse at {t.jd}.") # Compute central body position in solar reference frame r_central_body_heliocentric, _ = np.array(self._planet.eph(t))