PythonQuery without Addplots() #19854
Unanswered
chrspy1
asked this question in
Help using VisIt
Replies: 1 comment
-
VisIt doesn't read the data from files until you ask it to plot. Before that, it just reads root file metadata. So asking it to perform operations on data in the files before you have plotted anything doesn't work. There is good information here on python queries: https://visit-sphinx-github-user-manual.readthedocs.io/en/develop/using_visit/Quantitative/Query.html#python-queries There is a code example there that does |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the python visit cli, and I would like to pull data from specific arrays, do some math, and output an answer that is a single value.
I understand that I can use a python Query to do this. For example, I can do something like:
PythonQuery(file='q.py',vars={"var1","var2"})
However, such a query requires "an active and nonhidden plot" to work. For my application, I only care for a single value (for example
sum(var1*var2)
. From this, I have two questions.numpy
? For example, how would I do something like:PythonQuery
without needing to plot?Thanks,
Chris
Beta Was this translation helpful? Give feedback.
All reactions