Skip to content

Commit

Permalink
printing
Browse files Browse the repository at this point in the history
  • Loading branch information
GaelleChapuis committed Jul 20, 2023
1 parent 9a502e3 commit a65f65b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion needles2/probe_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,9 @@ def crawl_up_from_tip(ins, covered_length):
per0 = []

for p, traj in enumerate(trajs):
print(f'Trajectory: {traj["id"]}, provenance: {traj["provenance"]}, PID: {traj["probe_insertion"]}')
keys_display = ["id", "provenance", "probe_insertion"] # Keys to print, if exist
if len(set(keys_display).intersection(traj.keys())) == len(keys_display):
print(f'Trajectory: {traj["id"]}, provenance: {traj["provenance"]}, PID: {traj["probe_insertion"]}')
if len(trajs) > 20 and self.verbose is True:
if p % 20 == 0:
print(p / len(trajs))
Expand Down

0 comments on commit a65f65b

Please sign in to comment.