Skip to content

Commit

Permalink
Switch to printing ByteSize
Browse files Browse the repository at this point in the history
  • Loading branch information
sfegan committed Jan 23, 2025
1 parent d99b4f0 commit a179873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cta_stage1.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def insert_stage1_results(s1res, filename):
print(f'{info_tag(" DATABASE ")} Run {run_number_str} deleting old stage1 results from database, OID : {oid}')
sql.delete_by_oid(opt.db_stage1_table_name(), oid)

data_size = s1res.SpaceUsedLong()/1024**2
data_size = s1res.ByteSize()/1024**2
print(f'{info_tag(" DATABASE ")} Run {run_number_str} inserting stage1 results into database, size: {data_size:,.1f} MB')
start_time = time.time()
good, oid = sql.insert(opt.db_stage1_table_name(), s1res)
Expand Down

0 comments on commit a179873

Please sign in to comment.