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

New Algorithm to save one dimensional plottable(s) from a MatrixWorkspace to a json file #13522

Merged
merged 11 commits into from Sep 8, 2015

Conversation

yxqd
Copy link
Contributor

@yxqd yxqd commented Sep 1, 2015

This fixes #10234

A good integration test could be a usage in the monitor.sns.gov server

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
@peterfpeterson
Copy link
Member

The similar algorithm is called SavePlot1D. Please change the name to SaveJson1D (seems more consistent).

peterfpeterson added a commit that referenced this pull request Sep 8, 2015
New Algorithm to save one dimensional plottable(s) from a MatrixWorkspace to a json file
@peterfpeterson peterfpeterson merged commit 04ba0fb into master Sep 8, 2015
@peterfpeterson peterfpeterson deleted the 10234_save_json_from_WS branch September 8, 2015 13:18
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.

New algorithm to save json data from workspace
2 participants