File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2027,14 +2027,17 @@ def filename(self):
20272027
20282028 def __repr__ (self ):
20292029 """Build string representation."""
2030- s = f" { len (self .events )} events "
2030+ s = f"{ len (self .events )} events "
20312031 s += "(all good)" if self ._bad_dropped else "(good & bad)"
2032- s += f", { self .tmin :g} – { self .tmax :g} s"
2033- s += ", baseline "
2032+ s += f", { self .tmin :.3f} " .rstrip ("0" ).rstrip ("." )
2033+ s += f" – { self .tmax :.3f} " .rstrip ("0" ).rstrip ("." )
2034+ s += " s (baseline "
20342035 if self .baseline is None :
20352036 s += "off"
20362037 else :
2037- s += f"{ self .baseline [0 ]:g} – { self .baseline [1 ]:g} s"
2038+ s += f"{ self .baseline [0 ]:.3f} " .rstrip ("0" ).rstrip ("." )
2039+ s += f" – { self .baseline [1 ]:.3f} " .rstrip ("0" ).rstrip ("." )
2040+ s += " s"
20382041 if self .baseline != _check_baseline (
20392042 self .baseline ,
20402043 times = self .times ,
@@ -2043,7 +2046,7 @@ def __repr__(self):
20432046 ):
20442047 s += " (baseline period was cropped after baseline correction)"
20452048
2046- s += f", ~{ sizeof_fmt (self ._size )} "
2049+ s += f") , ~{ sizeof_fmt (self ._size )} "
20472050 s += f", data{ '' if self .preload else ' not' } loaded"
20482051 s += ", with metadata" if self .metadata is not None else ""
20492052 max_events = 10
You can’t perform that action at this time.
0 commit comments