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

Reading the header of a nur file crashes with python 3.10 / astropy 5.2.1 #481

Closed
fschlueter opened this issue Jan 19, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@fschlueter
Copy link
Collaborator

Trying to read the header of a simulation nur file produced with NuRadioMC v2.1.4 with python 3.10 / astropy 5.2.1 (installed via install_dev.py) fails:

....

  File "/Users/felix/software/envs/py310_nuRadio/lib/python3.10/site-packages/astropy/time/formats.py", line 1593, in value
    if self.precision > 0 and str_fmt.endswith("{sec:02d}"):
  File "/Users/felix/software/envs/py310_nuRadio/lib/python3.10/site-packages/astropy/time/formats.py", line 268, in precision
    return self._precision
AttributeError: 'TimeISOT' object has no attribute '_precision'. Did you mean: 'precision'?

When reading the file on a different machine with python 3.6 and astropy 4.1 it works.

@fschlueter fschlueter added the bug Something isn't working label Jan 19, 2023
@fschlueter
Copy link
Collaborator Author

In #520 I changed what is stored in the event headers. This entails changing to the parsing of the event headers which probably/hopefully solved this issue as well. I will close it. Feel free to reopen if you realised that this issue persist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant