Skip to content

Commit 9fd3d5d

Browse files
fixing Frequency::__repr__() recursion in Python3
1 parent 3a19c7e commit 9fd3d5d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nitime/timeseries.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,8 @@ def __new__(cls, f, time_unit='s'):
902902

903903
def __repr__(self):
904904

905-
return str(self) + ' Hz'
905+
return str(float(self)) + ' Hz'
906+
906907

907908
def to_period(self, time_unit=base_unit):
908909
"""Convert the value of a frequency to the corresponding period

0 commit comments

Comments
 (0)