Skip to content
Snippets Groups Projects

Add spreadsheet factory functionality to copy_absolutes.py

1 file
+ 8
0
Compare changes
  • Side-by-side
  • Inline
@@ -71,7 +71,15 @@ def copy_absolutes(
starttime=UTCDateTime(starttime),
endtime=UTCDateTime(endtime),
)
# confirm whether or not to copy absolutes
print(f"Found {len(readings)} absolutes")
copy = typer.confirm(f"Are you sure you want to copy {len(readings)} absolutes?")
if not copy:
print("Not copying absolutes")
raise typer.Abort()
print("Copying over absolutes")
# write readings to metadata service
metadata_factory = MetadataFactory(token=metadata_token, url=metadata_url)
with typer.progressbar(
Loading