Skip to content

Commit

Permalink
Improved formatting of DropletTrack
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zwicker committed Sep 25, 2024
1 parent 86b3603 commit 26e2f7d
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})"

Check warning on line 112 in droplets/droplet_tracks.py

View check run for this annotation

Codecov / codecov/patch

droplets/droplet_tracks.py#L112

Added line #L112 was not covered by tests
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 26e2f7d

Please sign in to comment.