Skip to content

Commit

Permalink
Improved formatting of DropletTrack (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zwicker authored Sep 25, 2024
1 parent 86b3603 commit 080535a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions droplets/droplet_tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ def __repr__(self):
if len(self.times) == 0:
return f"{class_name}([])"
elif len(self.times) == 1:
return f"{class_name}(time={self.start})"
return f"{class_name}(time={self.start:g})"
else:
return f"{class_name}(timespan={self.start}..{self.end})"
return f"{class_name}(timespan={self.start:g}..{self.end:g})"

def __len__(self):
"""Number of time points."""
Expand Down
2 changes: 1 addition & 1 deletion droplets/emulsions.py
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ def from_storage(
using fitting. This is a potentially slow procedure.
num_processes (int or "auto"):
Number of processes used for the refinement. If set to "auto", the
number of processes is choosen automatically.
number of processes is chosen automatically.
progress (bool):
Whether to show the progress of the process. If `None`, the progress is
only shown when `refine` is `True`. Progress bars are only shown for
Expand Down

0 comments on commit 080535a

Please sign in to comment.