tabsim 0.0.9__tar.gz → 0.0.10__tar.gz
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.
- {tabsim-0.0.9 → tabsim-0.0.10}/PKG-INFO +1 -1
- {tabsim-0.0.9 → tabsim-0.0.10}/pyproject.toml +1 -1
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/tle.py +57 -4
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim.egg-info/PKG-INFO +1 -1
- {tabsim-0.0.9 → tabsim-0.0.10}/LICENSE +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/README.md +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/docs/conf.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/setup.cfg +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/__init__.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/config.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/dask/__init__.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/dask/coordinates.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/dask/extras.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/dask/interferometry.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/dask/observation.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/__init__.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/config/sim_config_base.yaml +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/config/tab_config_base.yaml +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/rfi/norad_satellite.rfimodel +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/rfi/satellite.ole +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/rfi/satellite.rfimodel +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/rfi/stationary.loc +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/rfi/stationary.rfimodel +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/rfi/tles/2023-02-21-navstar.json +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/rfi/tles/2024-01-15-1T78VE.json +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/rfi/tles/2024-01-15-ISS.json +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/sky/calibrator.skymodel +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/telescopes/EDA2.itrf.txt +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/telescopes/MWA.itrf.txt +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/telescopes/MeerKAT.itrf.txt +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/data/telescopes/_telescopes.yaml +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/jax/__init__.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/jax/coordinates.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/jax/interferometry.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/jax/utils.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/plot.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/read_ms.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/scripts/__init__.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/scripts/ast_region.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/scripts/flag_data.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/scripts/import_tle_files.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/scripts/setup_spacetrack_login.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/scripts/sim_vis.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/scripts/tle_sat_region.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/scripts/write_config_from_ms.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/sky.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/tools.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim/write.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim.egg-info/SOURCES.txt +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim.egg-info/dependency_links.txt +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim.egg-info/entry_points.txt +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim.egg-info/requires.txt +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tabsim.egg-info/top_level.txt +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tests/test_basic.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tests/test_sim-vis.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tests/test_tle_api.py +0 -0
- {tabsim-0.0.9 → tabsim-0.0.10}/tests/test_version.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tabsim
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.10
|
|
4
4
|
Summary: Trajectory-based Radio Frequency Interference (RFI) simulations for radio interferometeric data.
|
|
5
5
|
Author-email: Chris Finlay <christopher.finlay@epfl.ch>
|
|
6
6
|
Maintainer-email: Chris Finlay <christopher.finlay@epfl.ch>
|
|
@@ -48,12 +48,19 @@ def load_spacetrack_credentials(tle_dir: Optional[str] = None) -> tuple[Optional
|
|
|
48
48
|
3. ~/.credentials/
|
|
49
49
|
4. Current working directory
|
|
50
50
|
|
|
51
|
+
Parameters:
|
|
52
|
+
-----------
|
|
53
|
+
tle_dir: Optional[str]
|
|
54
|
+
Directory containing TLE json files and Space-Track credentials YAML file.
|
|
55
|
+
|
|
51
56
|
Returns:
|
|
57
|
+
--------
|
|
52
58
|
tuple: (username, password) or (None, None) if credentials not found
|
|
53
59
|
|
|
54
60
|
To set up credentials, run: tabsim-setup-spacetrack
|
|
55
61
|
"""
|
|
56
62
|
tle_dir_path = make_tle_dir(tle_dir)
|
|
63
|
+
print(f"TLE directory path : {tle_dir_path}")
|
|
57
64
|
|
|
58
65
|
# Search paths in priority order
|
|
59
66
|
search_paths = [
|
|
@@ -67,16 +74,62 @@ def load_spacetrack_credentials(tle_dir: Optional[str] = None) -> tuple[Optional
|
|
|
67
74
|
try:
|
|
68
75
|
with open(cred_path, 'r') as f:
|
|
69
76
|
creds = yaml.safe_load(f)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
77
|
+
print(f"Space-Track credentials loaded from : {cred_path}")
|
|
78
|
+
username, password = creds.get('username'), creds.get('password')
|
|
79
|
+
check_space_track_credentials(username, password)
|
|
80
|
+
return username, password
|
|
81
|
+
except:
|
|
82
|
+
print(f"Warning: Could not load credentials from {cred_path}")
|
|
73
83
|
continue
|
|
74
84
|
|
|
85
|
+
print("No Space-Track credentials loaded.")
|
|
75
86
|
return None, None
|
|
76
87
|
|
|
77
88
|
|
|
78
|
-
def get_space_track_client(username, password):
|
|
89
|
+
def get_space_track_client(username: str, password: str) -> SpaceTrackClient:
|
|
90
|
+
"""Load the Space-Track client from login details.
|
|
91
|
+
|
|
92
|
+
Parameters
|
|
93
|
+
----------
|
|
94
|
+
username : str
|
|
95
|
+
Space-Track username.
|
|
96
|
+
password : str
|
|
97
|
+
Space-Track password.
|
|
98
|
+
|
|
99
|
+
Returns
|
|
100
|
+
-------
|
|
101
|
+
SpaceTrackClient
|
|
102
|
+
SpaceTrackClient object with credentials authenticated.
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
check_space_track_credentials(username, password)
|
|
106
|
+
|
|
79
107
|
return SpaceTrackClient(identity=username, password=password)
|
|
108
|
+
|
|
109
|
+
def check_space_track_credentials(username: str, password: str):
|
|
110
|
+
"""
|
|
111
|
+
Check Space-Track login credentials.
|
|
112
|
+
|
|
113
|
+
Parameters:
|
|
114
|
+
-----------
|
|
115
|
+
username : str
|
|
116
|
+
Space-Track username.
|
|
117
|
+
password : str
|
|
118
|
+
Space-Track password.
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
try:
|
|
122
|
+
# Authenticate
|
|
123
|
+
st_client = SpaceTrackClient(identity=username, password=password)
|
|
124
|
+
# Test authentication by making a simple request
|
|
125
|
+
st_client.authenticate()
|
|
126
|
+
print("Authentication successful!")
|
|
127
|
+
|
|
128
|
+
except:
|
|
129
|
+
print("Authentication failed")
|
|
130
|
+
print("Please check your Space-Track credentials.")
|
|
131
|
+
import sys
|
|
132
|
+
sys.exit(1)
|
|
80
133
|
|
|
81
134
|
|
|
82
135
|
def fetch_tle_data(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tabsim
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.10
|
|
4
4
|
Summary: Trajectory-based Radio Frequency Interference (RFI) simulations for radio interferometeric data.
|
|
5
5
|
Author-email: Chris Finlay <christopher.finlay@epfl.ch>
|
|
6
6
|
Maintainer-email: Chris Finlay <christopher.finlay@epfl.ch>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|