Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "tabsim"
version = "0.0.10"
version = "0.0.11"
license = {file = "LICENSE"}
readme = "README.md"
# dynamic = ["version", "readme"]
Expand Down
19 changes: 3 additions & 16 deletions tabsim/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,22 +525,9 @@ def add_tle_satellite_sources(
len(sat_["sat_names"]) > 0,
]
if np.any(tle_cond):

# Load SpaceTrack credentials
if spacetrack_path and os.path.exists(spacetrack_path):
# Load from specified path if file exists
st_ = yaml_load(spacetrack_path)
username = st_["username"]
password = st_["password"]
else:
# Try loading from standard locations
from tabsim.tle import load_spacetrack_credentials
username, password = load_spacetrack_credentials()

if username is None or password is None:
print("Warning: No SpaceTrack credentials found. Skipping TLE satellite sources.")
print("To set up credentials, run: tabsim-setup-spacetrack")
return

from tabsim.tle import load_spacetrack_credentials
username, password = load_spacetrack_credentials()

if sat_["norad_ids_path"] is None:
norad_ids = sat_["norad_ids"]
Expand Down
Loading