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

on-the-fly data reducers #245

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kostahoraites
Copy link
Contributor

vlsvreader.py: added capability to read_variable() to read on-the-fly data reducers, if the name string includes terms that look like '{variable_name.operator}'

Some comments:

This quick implementation already works remarkably well with other analysator routines---already tested that plot_colormap_3dslice() and and plot_colormap_threeslice() produce the correct plots, with only minor issues in the plot labeling. Also read_interpolated_variable() works with on-the-fly data reducers.

A more robust implementation may require digging into how data reducers work, rather than treating read_variable() as a black box. Lambdas are probably needed to create temporary data reducers.

Also, more secure alternatives to eval() may need to be explored.

@kostahoraites kostahoraites changed the title reduction.py: added data reducer vg_j_parallel on-the-fly data reducers Jun 18, 2024
vlsvreader.py: added capability to read_variable() to read on-the-fly data reducers, if the name string includes terms that look like '{variable_name.operator}'
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