Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
bfhealy committed Sep 14, 2023
1 parent fbf6d5d commit 2510c9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/scope_upload_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,11 @@ def upload_classification(
classes = [key for key in tax_map.keys()] # define list of columns to examine

# Get up-to-date ZTF instrument id
name = instrument_name
response_instruments = api('GET', 'api/instrument')
instrument_data = response_instruments.json().get('data')

for instrument in instrument_data:
if instrument['name'] == name:
if instrument['name'] == instrument_name:
instrument_id = instrument['id']
break

Expand Down

0 comments on commit 2510c9e

Please sign in to comment.