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

make general method to export JSON datasets #137

Closed
prjemian opened this issue May 9, 2019 · 5 comments
Closed

make general method to export JSON datasets #137

prjemian opened this issue May 9, 2019 · 5 comments
Assignees

Comments

@prjemian
Copy link
Contributor

prjemian commented May 9, 2019

In #136, code was developed to export datasets from the USAXS instrument into a JSON text file. Generalize that code and contribute to apstools.utils.

@prjemian prjemian added this to the milestone-2019-09 milestone May 9, 2019
@prjemian prjemian self-assigned this May 9, 2019
@prjemian
Copy link
Contributor Author

prjemian commented May 9, 2019

ZIP the export file.

@prjemian
Copy link
Contributor Author

Could be a command-line application, also.

prjemian added a commit that referenced this issue May 10, 2019
prjemian added a commit that referenced this issue May 10, 2019
prjemian added a commit that referenced this issue May 10, 2019
prjemian added a commit that referenced this issue May 10, 2019
prjemian added a commit that referenced this issue May 10, 2019
prjemian added a commit that referenced this issue May 10, 2019
prjemian added a commit that referenced this issue May 10, 2019
@prjemian
Copy link
Contributor Author

travis-ci reports it cannot import pyRestTable
It is downloaded and installed but conda list does not show it. Something must be off in the travis config.

@prjemian
Copy link
Contributor Author

skipping the command-line entry-point (for now)

prjemian added a commit that referenced this issue May 10, 2019
@prjemian prjemian reopened this May 10, 2019
@prjemian
Copy link
Contributor Author

travis-ci reports success but the logs say different:

======================================================================
ERROR: test_newfile_exists (test_filewriter.Test_SpecWriterCallback)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_filewriter.py", line 146, in test_newfile_exists
    specwriter.newfile(filename=testfile)
  File "tests/../apstools/filewriters.py", line 531, in newfile
    from spec2nexus.spec import SpecDataFile
ModuleNotFoundError: No module named 'spec2nexus'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "tests/test_filewriter.py", line 151, in test_newfile_exists
    self.assertFalse(raised, "file exists")
UnboundLocalError: local variable 'raised' referenced before assignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant