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
New algorithm to save json data from workspace #10234
Comments
@OwenArnold (2014-05-01T08:15:32): Also, I'm not sure if there's a portable JSON generator/parser for C++ that would help you here. @stuartcampbell (2014-05-01T13:00:43): @NickDraper (2014-05-07T08:48:30): @NickDraper (2014-05-07T08:57:22): JSON is used in the Script Library and the remote algorithms Take a look at MantidRemote/src/simplejson.cpp Also the script repo uses Could you take a look at these to see if they fit the bill? @NickDraper (2014-06-23T08:01:13): @NickDraper (2015-03-02T11:57:12): |
Added an altorightm to serialize 1D workspace data into a json dictionary and save. Added files into Framework/PythonInterface * plugins/algorithms/Save1DPlottableAsJson.py * test/python/plugins/algorithms/Save1DPlottableAsJsonTest.py Tests include 3 cases: * single curve (point data) * single histogram * two curves TODO: * Add validation into tests * Support optional property to assign a name to the plottable(s) * documentation
forgot to commit changes to the source code at the last commit for this
System test failed: have to remove the assigment of "framework" category Documentation test failed: now create the workspace on the fly
This issue was originally TRAC 9391
This will be used with auto-reduction to write out data for interactive visualization in http://monitor.sns.gov/.
For a single curve
The plot name should be a short name that can be used as a handle for the plot. For instance, the web monitor will look for a "main_output" plot in the json file, so the plot name should be an algorithm input property.
For more than one curve, just add entries to the top-level dictionary.
There still needs to be a way to have multiple sub-plots (e.g. stacked frames for S(Q) and G(r))
Only
MatrixWorkspace
needs to be supported.The text was updated successfully, but these errors were encountered: