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

Trial inspect call for emitting warnings #279

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

alhom
Copy link
Contributor

@alhom alhom commented Sep 19, 2024

Re: #276

This emits a warning when read_variable is called from CLI or from __main__ i.e. a user script not included in the analysator modules. This probably includes everything under scripts/ though, not sure if I like that. I think those are more user-facing, so it does serve a purpose there.

Testable via e.g.:

import pytools as pt
fn = 'somebulk.vlsv'
f = pt.vlsvfile.VlsvReader()
f.read_variable('vg_rank')

f.read_interpolated_variable('vg_rank', [0,0,0])

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

Successfully merging this pull request may close these issues.

1 participant