-
Notifications
You must be signed in to change notification settings - Fork 52
Description
Describe the bug
I cannot upload reduced data products (tags "photometry" or "spectroscopy") when using AWS. When I try, I see the message "There was a problem processing your file" on site. I added a logger to tom_dataproducts.views.DataProductUploadView.form_valid to find that the exception raised is "This backend doesn't support absolute paths." Stack Overflow suggests I can fix this by replacing fits.getdata(data_product.data.path) with fits.getdata(data_product.data.name) in the methods of tom_dataproducts.data_processor.DataProcessor, but I can't get this to work either.
To Reproduce
Steps to reproduce the behavior:
- Have a TOM configured to use AWS for storage
- Go to a target page
- Click on the Data tab
- Choose a file to upload (example)
- Choose the "Spectroscopy" tag
- Click "Upload"
Expected behavior
The data file should be uploaded and processed. A spectrum should appear in the "Spectra" tab of that target.
Desktop (please complete the following information):
- OS: heroku-18
- Browser: Safari
- Version: 13.0.1
- Python Version: 3.7.0
Additional context
When I upload a raw data product (e.g., tag "Fits File") it goes in a directory TargetName/none/filename.fits at the top level of my AWS bucket.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status