Skip to content

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