-
Notifications
You must be signed in to change notification settings - Fork 3
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
hera_sim and pyuvdata API changes have broken things. #344
Comments
@aewallwi these look like easy enough fixes. I'll get to it sometime this week. |
Hi, do you have any update on this? |
@adeliegorce, are the problems in |
No, since I call a previous version of |
@adeliegorce if you're using an old version of hera_sim, it should have the BTW I think current hera_sim does not required pyuvdata<2.2.0? |
The |
I don't think the |
It looks like in this run https://github.com/HERA-Team/hera_pspec/runs/3135559237?check_suite_focus=true the three failures are all coming from the out of date |
@adeliegorce can you post a link to the tests you are trying to run but are failing? I'm not quite sure I'm following. The commit you are using does NOT have I think @r-pascua understands the Sorry I'm not being more help! |
Okay, there might be a workaround then... |
And that is the ones that were running yesterday although I just changed the notebook from one commit to the other https://github.com/HERA-Team/hera_pspec/actions/runs/1053030265 |
It looks like the one that's failing is installing pyuvdata 2.2.1 while the one that passed is installing pyuvdata 2.1.5. So it looks like it's still a problem with API calls to the updated pyuvdata. |
After browsing the logs, it looks like the failures are related to changes made to I'm not sure if there's a neat way to address this problem in the code, since it seems like the changes made in As for dealing with the code, I see two solutions:
An alternative solution is to follow the idea that it's the responsibility of the user to make sure the files/objects they're using have the correct (meta)data, and to just remove the There may be other ways to deal with this, but this is about all I can think of based on my understanding of what's breaking in |
Thanks for your diagnostis @r-pascua! Maybe we should discuss this at the next |
Here is a quick summary of what we decided on the telecon. We think that the way forward is to be performed in two steps:
I think we also want input from @philbull and other interested parties. |
I apologize for the pyuvdata changes in uvcalibrate (actually I apologize that the initial version was released as it was, it never should have been allowed to apply calibrations to data with mismatching metadata). The underlying problem is that hera_cal used to write calfits files with incorrect metadata, but I believe that has been fixed, so if you update to newer files it shouldn't be a problem. If you really want to stick with the older files for some reason, I'd be happy to help you figure out how to correct the metadata in the UVCal objects immediately after they are read from the files in your tests. |
Hi folks, I've issued PR #346 to fix all this stuff. It removes the dependency on |
API changes to
hera_sim
andpyuvdata
are breakinghera_pspec
in various places. A few lines that are using outdated API calls arehera_pspec/hera_pspec/testing.py
Line 488 in 13e89d6
hera_pspec/hera_pspec/testing.py
Line 508 in 13e89d6
and
hera_pspec/hera_pspec/pspecdata.py
Line 213 in 13e89d6
hera_pspec/hera_pspec/pspecdata.py
Line 216 in 13e89d6
There may be more.
The text was updated successfully, but these errors were encountered: