Skip to content

Commit 6d0458e

Browse files
authored
Disable sbdb cache (#142)
* Disable sbdb cache
1 parent b49e49a commit 6d0458e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/adam_core/coordinates/transform.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
@jit
4444
def _cartesian_to_spherical(
45-
coords_cartesian: Union[np.ndarray, jnp.ndarray]
45+
coords_cartesian: Union[np.ndarray, jnp.ndarray],
4646
) -> jnp.ndarray:
4747
"""
4848
Convert a single Cartesian coordinate to a spherical coordinate.
@@ -179,7 +179,7 @@ def cartesian_to_spherical(coords_cartesian: np.ndarray) -> np.ndarray:
179179

180180
@jit
181181
def _spherical_to_cartesian(
182-
coords_spherical: Union[np.ndarray, jnp.ndarray]
182+
coords_spherical: Union[np.ndarray, jnp.ndarray],
183183
) -> jnp.ndarray:
184184
"""
185185
Convert a single spherical coordinate to a Cartesian coordinate.
@@ -258,7 +258,7 @@ def _spherical_to_cartesian(
258258

259259

260260
def spherical_to_cartesian(
261-
coords_spherical: Union[np.ndarray, jnp.ndarray]
261+
coords_spherical: Union[np.ndarray, jnp.ndarray],
262262
) -> jnp.ndarray:
263263
"""
264264
Convert spherical coordinates to Cartesian coordinates.

src/adam_core/orbits/classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
def calc_orbit_class(
10-
elements: Union[KeplerianCoordinates, CometaryCoordinates]
10+
elements: Union[KeplerianCoordinates, CometaryCoordinates],
1111
) -> np.ndarray:
1212
"""
1313
Calculate the orbital class for each Keplerian or Cometary orbit.

src/adam_core/orbits/query/sbdb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def _get_sbdb_elements(obj_ids: List[str]) -> List[OrderedDict]:
9595
List of dictionaries containing orbital elements and other object properties.
9696
"""
9797
results = []
98+
SBDB.clear_cache() # Yikes!
9899
for obj_id in obj_ids:
99100
result = SBDB.query(
100101
obj_id,

0 commit comments

Comments
 (0)