Skip to content
This repository has been archived by the owner on Apr 21, 2024. It is now read-only.

Commit

Permalink
Fix check that var_names is not None before checking its length
Browse files Browse the repository at this point in the history
  • Loading branch information
teobucci committed Feb 25, 2024
1 parent eefd6ea commit 89e186c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tefs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def fs(
if direction not in ['forward', 'backward']:
raise ValueError("direction must be either 'forward' or 'backward'")

if not len(var_names) == features.shape[1]:
if var_names and not len(var_names) == features.shape[1]:
raise ValueError("var_names must have the same length as the number of features")

# Prepare common arguments for both functions
Expand Down

0 comments on commit 89e186c

Please sign in to comment.