Skip to content

Commit 2eb5660

Browse files
committed
fixed type error when no features are found
1 parent 237d1f0 commit 2eb5660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

control/freqplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def default_frequency_range(syslist, Hz=None, number_of_samples=None, feature_pe
471471

472472
# Make sure there is at least one point in the range
473473
if (features.shape[0] == 0):
474-
features = np.array([1]);
474+
features = np.array([1.]);
475475

476476
if Hz:
477477
features /= 2.*np.pi

0 commit comments

Comments
 (0)