Skip to content

Commit

Permalink
Merge pull request #341 from quantumjot/quantumjot-patch-1
Browse files Browse the repository at this point in the history
Add `x` back to functional evaluation while loading legacy files
  • Loading branch information
quantumjot authored Jul 18, 2023
2 parents 84e15e6 + e820ef5 commit 0d8b714
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Install the following with
conda install -c conda-forge cvxopt
```

then run the above command with `pip`.
then run the above `pip` install command.

## Usage examples

Expand Down
2 changes: 1 addition & 1 deletion btrack/io/hdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def filtered_objects(
else:
raise ValueError(f"Cannot filter objects by {f_expr}")

filtered_idx = [i for i, _ in enumerate(data) if eval(f_eval)]
filtered_idx = [i for i, x in enumerate(data) if eval(f_eval)]

else:
filtered_idx = range(txyz.shape[0]) # default filtering uses all
Expand Down

0 comments on commit 0d8b714

Please sign in to comment.