Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Future waring in spec.py parser for numpy.vstack #51

Open
KennethNielsen opened this issue Nov 10, 2022 · 1 comment
Open

Future waring in spec.py parser for numpy.vstack #51

KennethNielsen opened this issue Nov 10, 2022 · 1 comment

Comments

@KennethNielsen
Copy link
Member

When running the tests, the following warning appears:

  /home/kenneth/venv/PyExpLabSys/PyExpLabSys/file_parsers/specs.py:507: FutureWarning: arrays to stack must be passed as a "sequence" type such as list or tuple. Support for non-sequence iterables such as generators is deprecated as of NumPy 1.16 and will raise an error in the future.
    vstack = np.vstack(self.iter_scans)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
@KennethNielsen
Copy link
Member Author

I think it should be simple enough to fix, most likely changing the line to:

vstack = np.vstack(list(self.iter_scans))

but I'd rather not do it without the ability to test it live.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant