Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix load_config in tns.py #17

Merged
merged 1 commit into from
Jul 6, 2022
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
6 changes: 3 additions & 3 deletions tendrils/utils/tns.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def tns_search(coord: Optional[SkyCoord] = None, radius: u.Quantity = 3 * u.arcs
"""

# API key for Bot
tnsconf = _load_tns_config()
tnsconf = load_tns_config()

# change json_list to json format
json_file = {'radius': radius.to('arcsec').value, 'units': 'arcsec', 'objname': objname,
Expand Down Expand Up @@ -101,7 +101,7 @@ def tns_get_obj(name:str) -> Optional[dict]:
"""

# API key for Bot
tnsconf = _load_tns_config()
tnsconf = load_tns_config()

# construct the list of (key,value) pairs
headers = {'user-agent': tnsconf['user-agent']}
Expand Down Expand Up @@ -172,7 +172,7 @@ def tns_getnames(months: Optional[int] = None, date_begin: Optional[DateType] =
logger.warning('Months limit restricts days_begin, consider increasing limit_months.')

# API key for Bot
tnsconf = _load_tns_config()
tnsconf = load_tns_config()

# Parameters for query:
params = {'discovered_period_value': months, # Reported Within The Last
Expand Down
2 changes: 1 addition & 1 deletion tendrils/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

major = 0
minor = 3
bugfix = 1
bugfix = 2
version_info = (major, minor, bugfix)
version = f"{major}.{minor}.{bugfix}"