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

unhandled exception in make_polarimetry_groups due to wrong data #63

Merged
merged 4 commits into from
Dec 15, 2023

Conversation

juanep97
Copy link
Owner

@juanep97 juanep97 commented Dec 14, 2023

We have found that in some cases several files in an epoch have the same juliandate. This should not happen (it is a problem with the data), but when it does, it causes an exception in make_polarimetry_groups.

For the case of making the polarimetry groups, a workaround can be to sort by filename too, to make sure that if there are several groups where all files have the same juliandate, the files from each polarimetry cycle are not mixed.

For example: even if there are two files for the same object and angle and they have the same date, the filename will distinguish if they belong to one cycle or other (Mrk241_0001R.fit vs Mrk241_0017R.fit).

This will not fix the fact that when the results are computed for those files, there will be several measurements for the same exact date and time. This can not be avoided since the time and date of the fits is exactly the same.

@juanep97 juanep97 added the bug Something isn't working label Dec 14, 2023
@juanep97 juanep97 requested a review from morcuended December 14, 2023 15:26
@juanep97 juanep97 changed the title Bug make polarimetry groups workaround for exception in make_polarimetry_groups caused by wrong data Dec 14, 2023
@juanep97 juanep97 changed the title workaround for exception in make_polarimetry_groups caused by wrong data unhandled exception in make_polarimetry_groups caused by wrong data Dec 14, 2023
@juanep97 juanep97 changed the title unhandled exception in make_polarimetry_groups caused by wrong data unhandled exception in make_polarimetry_groups due to wrong data Dec 14, 2023
@morcuended
Copy link
Collaborator

can the data be fixed at raw level?

@juanep97
Copy link
Owner Author

juanep97 commented Dec 14, 2023

can the data be fixed at raw level?

It seems that all time related fields in the header are wrong, e.g:

https://vhega.iaa.es/iop4/admin/iop4api/rawfit/details/140815
https://vhega.iaa.es/iop4/admin/iop4api/rawfit/details/140833

So I would say no.

Copy link
Collaborator

@morcuended morcuended left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@juanep97 juanep97 merged commit 2eb8718 into main Dec 15, 2023
2 of 4 checks passed
@juanep97 juanep97 deleted the bug_make_polarimetry_groups branch December 15, 2023 12:49
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

Successfully merging this pull request may close these issues.

2 participants