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

loading Antaress data doesn't work. #18

Open
Tappeo opened this issue Oct 30, 2019 · 1 comment
Open

loading Antaress data doesn't work. #18

Tappeo opened this issue Oct 30, 2019 · 1 comment

Comments

@Tappeo
Copy link

Tappeo commented Oct 30, 2019

I have an ARPES-data of Antares where is a radiational synchrotron in France, as Nexus format.
I tried to load the Antares data with "dataloaders.py" of arpys as the following :

from arpys import dl, pp
D = dl.load_data('CMA_2018-03-31_13-33-07.nxs')

However, I got the following error :
WARNING: non-ASCII characters are present in the FITS file header and have been replaced by "?" characters [astropy.io.fits.util]
WARNING: non-ASCII characters are present in the FITS file header and have been replaced by "?" characters [astropy.io.fits.util]

Exception <class 'KeyError'>: 'Unable to open object (component not found)'

Exception <class 'KeyError'>: "Unable to open object (object 'Matrix' doesn't exist)"

Exception <class 'KeyError'>: 'Unable to open object (component not found)'

Exception <class 'UnicodeDecodeError'>: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte

Exception <class 'KeyError'>: "Unable to open object (object '2D_Data' doesn't exist)"
<class Dataloader_ALS .fits>
Exception <class 'OSError'>: Header missing END card.

Exception <class '_pickle.UnpicklingError'>: invalid load key, 'H'.
Traceback (most recent call last):
File "load_1.py", line 2, in
D = dl.load_data('CMA_2018-03-31_13-33-07.nxs')
File "/usr/local/lib/python3.7/site-packages/arpys/dataloaders.py", line 1134, in load_data
raise Exception('Could not load data {}.'.format(filename))
Exception: Could not load data CMA_2018-03-31_13-33-07.nxs.

I could load other radiational synchrotron data such as SIS and ADRESS with "dataloaders.py" as above.
Just in case of Antares, it doesn't work.
I guess that the file format is inappropriate for "dataloaders.py".
Is it possible to read the data somehow?

Thank you in advance.
Tappeo

@Tappeo Tappeo closed this as completed Oct 30, 2019
@Tappeo Tappeo reopened this Oct 30, 2019
@kuadrat
Copy link
Owner

kuadrat commented May 4, 2020

Hi, thanks for your message and sorry for the extremely late reply - somehow this has flown completely under my radar.
In order for the dataloading to succeed, a respective dataloader class has to be implemented in dataloaders.py
You can try to do it yourself, of if you send me some typical antares data (with metadata) so I can inspect the format, I could give it a go.

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

No branches or pull requests

2 participants