Skip to content

Commit

Permalink
Merge pull request #17 from SNflows/fix_tns
Browse files Browse the repository at this point in the history
fix load_config in tns.py
  • Loading branch information
emirkmo authored Jul 6, 2022
2 parents d54efb1 + 0bd1368 commit da578e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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}"

0 comments on commit da578e1

Please sign in to comment.