keplemon 0.1.9__cp312-cp312-macosx_11_0_arm64.whl → 0.2.0__cp312-cp312-macosx_11_0_arm64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of keplemon might be problematic. Click here for more details.

keplemon/__init__.py CHANGED
@@ -1,17 +1,31 @@
1
1
  from keplemon._keplemon.time import load_time_constants # type: ignore
2
- from keplemon._keplemon import get_thread_count, set_thread_count # type: ignore
2
+ from keplemon._keplemon import ( # type: ignore
3
+ get_thread_count,
4
+ set_thread_count,
5
+ set_license_file_path,
6
+ get_license_file_path,
7
+ )
3
8
  from pathlib import Path
4
9
  from shutil import copyfile
5
10
 
6
11
  current_dir = Path(__file__).parent
7
12
 
8
13
  # Copy the license file to the current working directory if it doesn't exist
9
- working_license_path = Path.cwd() / "SGP4_Open_License.txt"
10
- if not working_license_path.exists():
11
- copyfile(current_dir / "SGP4_Open_License.txt", working_license_path)
14
+ LICENSE_PATH = current_dir / "SGP4_Open_License.txt"
15
+ local_path = Path.cwd() / "SGP4_Open_License.txt"
16
+ if not local_path.exists():
17
+ copyfile(LICENSE_PATH, local_path)
18
+ set_license_file_path(LICENSE_PATH.as_posix())
12
19
 
13
20
  # Load the time constants from the assets directory
14
21
  TIME_CONSTANTS_PATH = current_dir / "assets" / "time_constants.dat"
15
22
  load_time_constants(TIME_CONSTANTS_PATH.as_posix())
16
23
 
17
- __all__ = ["get_thread_count", "set_thread_count", "TIME_CONSTANTS_PATH"]
24
+ __all__ = [
25
+ "get_thread_count",
26
+ "set_thread_count",
27
+ "TIME_CONSTANTS_PATH",
28
+ "set_license_file_path",
29
+ "LICENSE_PATH",
30
+ "get_license_file_path",
31
+ ]
keplemon/__init__.pyi CHANGED
@@ -28,3 +28,23 @@ Path to the default time constants file required by the SAAL binaries
28
28
  !!! warning
29
29
  This path should never be modified and is only exposed to allow inspection of current data.
30
30
  """
31
+
32
+ #: Path to the license file
33
+ LICENSE_PATH: Path
34
+ """Path to the license file required by the SAAL binaries"""
35
+
36
+ def set_license_file_path(path: str) -> None:
37
+ """
38
+ Set the path to the license file required by the SAAL binaries
39
+
40
+ Args:
41
+ path: Path to the SGP4 license file
42
+ """
43
+ ...
44
+
45
+ def get_license_file_path() -> str:
46
+ """
47
+ Returns:
48
+ Path to the SGP4 license file
49
+ """
50
+ ...
Binary file
@@ -0,0 +1,3 @@
1
+ from keplemon._keplemon.saal import get_key_mode, set_key_mode # type: ignore
2
+
3
+ __all__ = ["get_key_mode", "set_key_mode"]
@@ -0,0 +1,9 @@
1
+ from keplemon._keplemon.saal.obs_interface import ( # type: ignore
2
+ b3_to_csv,
3
+ load_from_b3,
4
+ remove_ob_key,
5
+ get_ob_field,
6
+ get_ob_array,
7
+ )
8
+
9
+ __all__ = ["b3_to_csv", "load_from_b3", "remove_ob_key", "get_ob_field", "get_ob_array"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: keplemon
3
- Version: 0.1.9
3
+ Version: 0.2.0
4
4
  Requires-Dist: requests
5
5
  Requires-Dist: click
6
6
  Requires-Dist: maturin>=1.0,<2.0 ; extra == 'dev'
@@ -1,11 +1,11 @@
1
- keplemon-0.1.9.dist-info/METADATA,sha256=To4sWt4P_NbCxB0q5zWDXVHYh4lslPDyMkTTiVrb_lQ,3792
2
- keplemon-0.1.9.dist-info/WHEEL,sha256=lKF1x2UaOHDUKmYwqYyNAuk2SmZm-X0V9mSA2tiAos4,104
3
- keplemon-0.1.9.dist-info/entry_points.txt,sha256=eYbCkvQvWfRDQ0LzaCELov1xeLAxQEHlfdgNq-LXyb0,49
1
+ keplemon-0.2.0.dist-info/METADATA,sha256=cmEwjecg6patmw1F2UazhYceZOTJqHkGRWve5_qL05o,3792
2
+ keplemon-0.2.0.dist-info/WHEEL,sha256=lKF1x2UaOHDUKmYwqYyNAuk2SmZm-X0V9mSA2tiAos4,104
3
+ keplemon-0.2.0.dist-info/entry_points.txt,sha256=eYbCkvQvWfRDQ0LzaCELov1xeLAxQEHlfdgNq-LXyb0,49
4
4
  keplemon/SGP4_Open_License.txt,sha256=0WofOXQb5YJqnYhXWXnBdCajiTJQAT60UAkSeHsxyr8,8509
5
- keplemon/__init__.py,sha256=BAPHlEUZPMZ6RpxA_VHtTVS7Hf_mQjLWiWNaW69B9-o,742
6
- keplemon/__init__.pyi,sha256=53luemEWRmxv8_3hkqme2Gp0bSwfkNuLgxxieU4XWdM,679
5
+ keplemon/__init__.py,sha256=kpXzIPykuhSr8WIAkh2QmV1O2e9HRWZfFtKwOXBB52I,947
6
+ keplemon/__init__.pyi,sha256=GfQncAsWnriz9fQVW2xP7jQ5xFvHbGrknUw-2hRoIVg,1093
7
7
  keplemon/__main__.py,sha256=-3GVkDOA0lV0MIqU9gPb4zbVimg2lA8HMkvdPDw1O28,669
8
- keplemon/_keplemon.cpython-312-darwin.so,sha256=ddWvzqYZ-4cAdEsZANx-a19Ds-MK5DDNy9AJCr3EyPo,1648624
8
+ keplemon/_keplemon.cpython-312-darwin.so,sha256=SEKlAcbNRjgfKLFbPFyQDJI38e-UlLUPe3hR_RaQ12c,1668304
9
9
  keplemon/assets/EGM-2008.GEO,sha256=K2nG8HGLATIHZYMfw3GSClYOTCuZ7rq4RdCeUNgCw5A,148770
10
10
  keplemon/assets/EGM-96.GEO,sha256=VBkILuvEMwAPuWmUHy2PeyEfULOwJ4PEJLNf5hr84mU,148770
11
11
  keplemon/assets/GEM_5-22.GEO,sha256=stemYLn1ChXa-VdLGHYfa15AXZa_xxGZQ65p4c3gffI,6852
@@ -48,8 +48,8 @@ keplemon/libvcm.dylib,sha256=H8OuCu60eoEZMVkDkiInZNja4HqQwaT1TfeCiqaoLNo,196000
48
48
  keplemon/propagation.py,sha256=sFP4PYDkTFAuZ815J_XaLneLNKx0s_cW4yJBCJKpDxE,115
49
49
  keplemon/propagation.pyi,sha256=YSA3cBzgHLW3_dykrjMX4PbReYJmz5Z7bzfuibPaegc,464
50
50
  keplemon/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
51
- keplemon/saal.py,sha256=P_vrtUn0dxZnd_IhzgwbP_KcDYUhZ3vkCN2wrzPTHmo,301
52
- keplemon/saal.pyi,sha256=LX4i3SxpL6UduhHjJ5aO443QbH1v-BhKBL968Z8vQhY,469
51
+ keplemon/saal/__init__.py,sha256=aoTB13q7IvXuQ80jgGCnwXA29yjpOqLiTdrtyjyRqLE,123
52
+ keplemon/saal/obs_interface.py,sha256=EtsaPKixjMWfCUpMd79SvhCs3f9sRcBaal6-ickj3Vs,248
53
53
  keplemon/time.py,sha256=rFefwGP2deAeyzMQcaK5D7dIpiQDklr9eBKT6yVK7Ac,2872
54
54
  keplemon/time.pyi,sha256=f6MxNpscs3jje0zo5yilyMBj8b0U7TVFnU6bt6NAJl0,6255
55
- keplemon-0.1.9.dist-info/RECORD,,
55
+ keplemon-0.2.0.dist-info/RECORD,,
keplemon/saal.py DELETED
@@ -1,15 +0,0 @@
1
- from keplemon._keplemon.saal import ( # type: ignore
2
- get_key_mode,
3
- set_key_mode,
4
- topo_date_to_epoch,
5
- topo_epoch_to_date,
6
- topo_equinox_to_date,
7
- )
8
-
9
- __all__ = [
10
- "get_key_mode",
11
- "set_key_mode",
12
- "topo_date_to_epoch",
13
- "topo_epoch_to_date",
14
- "topo_equinox_to_date",
15
- ]
keplemon/saal.pyi DELETED
@@ -1,8 +0,0 @@
1
- # flake8: noqa
2
- from keplemon.enums import SAALKeyMode
3
-
4
- def get_key_mode() -> SAALKeyMode: ...
5
- def set_key_mode(mode: SAALKeyMode) -> None: ...
6
- def topo_equinox_to_date(yr_of_equinox: int, ds50utc: float, ra: float, dec: float) -> tuple[float, float]: ...
7
- def topo_date_to_epoch(ds50_in: float, ra: float, dec: float, ds50_out: float) -> tuple[float, float]: ...
8
- def topo_epoch_to_date(ds50_in: float, ra: float, dec: float, ds50_out: float) -> tuple[float, float]: ...