keplemon 0.1.9__cp311-cp311-win_amd64.whl → 0.2.0__cp311-cp311-win_amd64.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,6 +1,6 @@
1
- keplemon-0.1.9.dist-info/METADATA,sha256=Iv8NsGeiAa6GhmZhVxI3qOipUY49w9g8NzRwzQp7gdA,3869
2
- keplemon-0.1.9.dist-info/WHEEL,sha256=j4qqVNEKdft0WYe2NEymIjSlGSeJ1BogQYEaMx5ZvPI,96
3
- keplemon-0.1.9.dist-info/entry_points.txt,sha256=eYbCkvQvWfRDQ0LzaCELov1xeLAxQEHlfdgNq-LXyb0,49
1
+ keplemon-0.2.0.dist-info/METADATA,sha256=ItHFuUvj2typO7HZt5HsVjABdHaVh50Nzxw5nU6tBDk,3869
2
+ keplemon-0.2.0.dist-info/WHEEL,sha256=j4qqVNEKdft0WYe2NEymIjSlGSeJ1BogQYEaMx5ZvPI,96
3
+ keplemon-0.2.0.dist-info/entry_points.txt,sha256=eYbCkvQvWfRDQ0LzaCELov1xeLAxQEHlfdgNq-LXyb0,49
4
4
  keplemon/AstroFunc.dll,sha256=RwDLeYGuSd3MxQ3O_Ljb0maS5KoDL8HZLpAvcQhDmnQ,357376
5
5
  keplemon/AstroFunc.lib,sha256=q0Ob5NGUgbywJg6XqH48QLNmFv8T5p8NVLSx2kKkL4A,56480
6
6
  keplemon/DllMain.dll,sha256=vYgOfGAUHn2z1MrVu9wV-k_LRdtuF8RuWrbuu2xk7jk,121344
@@ -28,10 +28,10 @@ keplemon/Tle.dll,sha256=Yt6hY3-PoJFFgB2idJQFC_Ia49grYhpSe_gPAmVswMs,195584
28
28
  keplemon/Tle.lib,sha256=6NCJPR7JQ63mxCISyvYteq4-oHcqs3Ib8bwhTjJfk-I,23622
29
29
  keplemon/Vcm.dll,sha256=EWx2eZAdBa1F2yGSUYzgAItnP6-nJT35sfJsrBW1Vfs,274432
30
30
  keplemon/Vcm.lib,sha256=q2FPbH_DJXjIzNIzli2f1uV2faHHBjLbffZrL3Nagpw,19404
31
- keplemon/__init__.py,sha256=CsNJS6r7e05oHdMKI-dQyIiLvL36KJU8c70vweuL5YE,759
32
- keplemon/__init__.pyi,sha256=2eKLIesgOK-C6maXIFVk8xe-EHQR_uJVor8KhtlYpT4,709
31
+ keplemon/__init__.py,sha256=-gU6voiCb9asLkojqqkAsxq12MrgPPjc9odkjlm5SfI,978
32
+ keplemon/__init__.pyi,sha256=AINTWPIZPPt5MmlB9qe_IArcQaRvfqI3wRozvJduWFM,1143
33
33
  keplemon/__main__.py,sha256=Bbbzny3eE3NOikVCEVFAGJiSRGooAkLzPwoSz-rpaxc,689
34
- keplemon/_keplemon.cp311-win_amd64.pyd,sha256=58xHz01ZK8IpwMx-JER4FZ17xYfhEMtQ7f0JN3JtGSw,1315328
34
+ keplemon/_keplemon.cp311-win_amd64.pyd,sha256=CsGubnf9WbnEwf1rIwqgWEv6LgC0dDjSXcNOK4WhftM,1321984
35
35
  keplemon/assets/EGM-2008.GEO,sha256=K2nG8HGLATIHZYMfw3GSClYOTCuZ7rq4RdCeUNgCw5A,148770
36
36
  keplemon/assets/EGM-96.GEO,sha256=VBkILuvEMwAPuWmUHy2PeyEfULOwJ4PEJLNf5hr84mU,148770
37
37
  keplemon/assets/GEM_5-22.GEO,sha256=stemYLn1ChXa-VdLGHYfa15AXZa_xxGZQ65p4c3gffI,6852
@@ -60,8 +60,8 @@ keplemon/libmmd.dll,sha256=Qf9bE3FoMllIyq4gRjhGK-Al9PVonTI0O5GP-dwuhb4,4449832
60
60
  keplemon/propagation.py,sha256=PEFXVmF-UgSR88Wp72MGtJYo2xxUFC5A7tQhT9JnF8w,120
61
61
  keplemon/propagation.pyi,sha256=ZWqjxwg4MQebRukTysK2ZyTtIxvAyZIkUybO3wsZO9Q,483
62
62
  keplemon/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
- keplemon/saal.py,sha256=-il5Iq9qXRx83myb_qtFr2VIlTntizuBaDH27e83g9s,316
64
- keplemon/saal.pyi,sha256=0XbQhzZQhHTFa0_YLC5Zg63drIUlswRbcRYmrY5MZ7I,477
63
+ keplemon/saal/__init__.py,sha256=JS-tjVFqN1B3ZjIG2g7v1GrmUPi9eIv0_Le1reYuQ2o,126
64
+ keplemon/saal/obs_interface.py,sha256=ax8T4Y61pWh3VnQ4K2bCDNdrK-H6WKWr14pEDAY8WxE,257
65
65
  keplemon/time.py,sha256=3cCQYaJpRPm5EEHa8PUT7OP6ILkmzxCEjmrhqa383cE,2974
66
66
  keplemon/time.pyi,sha256=A4mR1uKrXIeBWfkwzIGoh910u2xZ_TAF6vENG7kvs2E,6524
67
- keplemon-0.1.9.dist-info/RECORD,,
67
+ 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]: ...