keplemon 0.1.9__cp311-cp311-macosx_11_0_arm64.whl → 0.2.1__cp311-cp311-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.
keplemon/__init__.py CHANGED
@@ -1,17 +1,29 @@
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
- from shutil import copyfile
5
9
 
6
- current_dir = Path(__file__).parent
7
10
 
8
- # 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)
11
+ PACKAGE_DIRECTORY = Path(__file__).parent
12
+ ASSETS_DIRECTORY = PACKAGE_DIRECTORY / "assets"
13
+
14
+ # Set the license file directory to the package directory
15
+ set_license_file_path(ASSETS_DIRECTORY.as_posix())
12
16
 
13
17
  # Load the time constants from the assets directory
14
- TIME_CONSTANTS_PATH = current_dir / "assets" / "time_constants.dat"
18
+ TIME_CONSTANTS_PATH = ASSETS_DIRECTORY / "time_constants.dat"
15
19
  load_time_constants(TIME_CONSTANTS_PATH.as_posix())
16
20
 
17
- __all__ = ["get_thread_count", "set_thread_count", "TIME_CONSTANTS_PATH"]
21
+ __all__ = [
22
+ "get_thread_count",
23
+ "set_thread_count",
24
+ "TIME_CONSTANTS_PATH",
25
+ "set_license_file_path",
26
+ "PACKAGE_DIRECTORY",
27
+ "ASSETS_DIRECTORY",
28
+ "get_license_file_path",
29
+ ]
keplemon/__init__.pyi CHANGED
@@ -28,3 +28,27 @@ 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 parent directory of the package
33
+ PACKAGE_DIRECTORY: Path
34
+ """Path to the parent directory of the package"""
35
+
36
+ #: Path to the assets directory containing supporting data files for the package
37
+ ASSETS_DIRECTORY: Path
38
+ """Path to the assets directory containing supporting data files for the package"""
39
+
40
+ def set_license_file_path(path: str) -> None:
41
+ """
42
+ Set the path to the license file required by the SAAL binaries
43
+
44
+ Args:
45
+ path: Path to the SGP4 license file
46
+ """
47
+ ...
48
+
49
+ def get_license_file_path() -> str:
50
+ """
51
+ Returns:
52
+ Path to the SGP4 license file
53
+ """
54
+ ...
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.1
4
4
  Requires-Dist: requests
5
5
  Requires-Dist: click
6
6
  Requires-Dist: maturin>=1.0,<2.0 ; extra == 'dev'
@@ -1,11 +1,10 @@
1
- keplemon-0.1.9.dist-info/METADATA,sha256=To4sWt4P_NbCxB0q5zWDXVHYh4lslPDyMkTTiVrb_lQ,3792
2
- keplemon-0.1.9.dist-info/WHEEL,sha256=uknsTnQ4D3qZvtLjoBwOrQ-H3LYkwihRUx6jxoJPLSU,104
3
- keplemon-0.1.9.dist-info/entry_points.txt,sha256=eYbCkvQvWfRDQ0LzaCELov1xeLAxQEHlfdgNq-LXyb0,49
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
1
+ keplemon-0.2.1.dist-info/METADATA,sha256=bncXm0xVjRXq6_20nfZwVx5uc7ooEEukjfPa_Faj6Qw,3792
2
+ keplemon-0.2.1.dist-info/WHEEL,sha256=uknsTnQ4D3qZvtLjoBwOrQ-H3LYkwihRUx6jxoJPLSU,104
3
+ keplemon-0.2.1.dist-info/entry_points.txt,sha256=eYbCkvQvWfRDQ0LzaCELov1xeLAxQEHlfdgNq-LXyb0,49
4
+ keplemon/__init__.py,sha256=WbSkCGu2zpYEemTr-QtRXWnH7amDTQ7OSVD59BxI9ig,812
5
+ keplemon/__init__.pyi,sha256=uE60ln_KJgcfvKburVmbcKT0h_wLPgjBWuyNLgI8ETI,1295
7
6
  keplemon/__main__.py,sha256=-3GVkDOA0lV0MIqU9gPb4zbVimg2lA8HMkvdPDw1O28,669
8
- keplemon/_keplemon.cpython-311-darwin.so,sha256=d-fYuMxEoJdIhkkcr-l7TeVUpm8K3u_fFUJhoYOo_LU,1686912
7
+ keplemon/_keplemon.cpython-311-darwin.so,sha256=vo2YiQPWR4YBlZ2bEfXESASY2m8CbW4LTD-LoUnXEIQ,1688272
9
8
  keplemon/assets/EGM-2008.GEO,sha256=K2nG8HGLATIHZYMfw3GSClYOTCuZ7rq4RdCeUNgCw5A,148770
10
9
  keplemon/assets/EGM-96.GEO,sha256=VBkILuvEMwAPuWmUHy2PeyEfULOwJ4PEJLNf5hr84mU,148770
11
10
  keplemon/assets/GEM_5-22.GEO,sha256=stemYLn1ChXa-VdLGHYfa15AXZa_xxGZQ65p4c3gffI,6852
@@ -14,6 +13,7 @@ keplemon/assets/JGM2-70.GEO,sha256=7NCW-clrb7PddiBOf_GWrJ0Qf_ZjM823jU9mDIOVLG0,1
14
13
  keplemon/assets/JPLcon_1950_2050.405,sha256=IRfVZmBTDAKGdMGTyZr06KSBY0N5PxRgEcljPrZB_iU,31222725
15
14
  keplemon/assets/NWL8C-12.GEO,sha256=ZwDKiFC5AxrSIkDPBUnQMmZeSaA5272V-z8yn6bKjOs,4788
16
15
  keplemon/assets/SEM68R-8.GEO,sha256=vJTCLrviQ9HonN9BojX8PbH0vPkL4qgpBxUc9X43sjI,2482
16
+ keplemon/assets/SGP4_Open_License.txt,sha256=0WofOXQb5YJqnYhXWXnBdCajiTJQAT60UAkSeHsxyr8,8509
17
17
  keplemon/assets/WGS84-70.GEO,sha256=ARjEC_5s2SVd0Kh9udbTy1ztBwTeuBYPOhUVJgIqit8,148510
18
18
  keplemon/assets/time_constants.dat,sha256=qDpJ2UrQvIDfxsBc4P2AdLS-b2lyR7RCzjqmeG4Ypl8,1226736
19
19
  keplemon/bodies.py,sha256=XnaY6XTuj8CHM3XOwOSY3E8nSo0RWwCcAY0FGxAVWa8,208
@@ -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.1.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]: ...