Skip to content

Commit

Permalink
DSEGOG-179 correct indentation on ingestion script
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed May 10, 2023
1 parent 52df8ed commit 555c4cb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions util/ingest_hdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,15 @@ def clear_buffers(process, output=False):
if response.status_code == 200:
print(
f"Ingested {len(response.json())} experiments from Scheduler. Response from"
" API call:")
" API call:",
)
pprint(response.json())
else:
print(f"{response.status_code} returned")
pprint(response.text)

# Kill API process if it was started in this script
# Using args.url because API_URL will be populated when API process was started
if not args.url:
api_process.kill()
print(f"API stopped on {API_URL}")
# Kill API process if it was started in this script
# Using args.url because API_URL will be populated when API process was started
if not args.url:
api_process.kill()
print(f"API stopped on {API_URL}")

0 comments on commit 555c4cb

Please sign in to comment.