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

CNF posrec urlconfig fix #1519

Merged
merged 12 commits into from
Jan 24, 2025
Merged

CNF posrec urlconfig fix #1519

merged 12 commits into from
Jan 24, 2025

Conversation

juehang
Copy link
Contributor

@juehang juehang commented Jan 10, 2025

Before you submit this PR: make sure to put all operations-related information in a wiki-note, a PR should be about code and is publicly accessible

What does the code in this PR do / what does it improve?

Close #1518
Close #1506

Can you briefly describe how it works?

Changed the urlconfig string to use xedocs.

Can you give a minimal working example (or illustrate with a figure)?

Please include the following if applicable:

  • Update the docstring(s)
  • Update the documentation
  • Tests to check the (new) code is working as desired.
  • Does it solve one of the open issues on github?

Notes on testing

  • Until the automated tests pass, please mark the PR as a draft.
  • On the XENONnT fork we test with database access, on private forks there is no database access for security considerations.

All italic comments can be removed from this template.

@juehang juehang changed the title Cnf urlconfig fix CNF posrec urlconfig fix Jan 10, 2025
@GiovanniVolta
Copy link
Contributor

GiovanniVolta commented Jan 10, 2025

This PR needs this one to be merged no?

@juehang
Copy link
Contributor Author

juehang commented Jan 10, 2025

Tests are failing because the test environment does not have the latest xedocs version; relevant base_environment PR XENONnT/base_environment#1927

@juehang
Copy link
Contributor Author

juehang commented Jan 10, 2025

This PR needs this one to be merged no?

Yes, and also the base_environment PR

Copy link
Collaborator

@dachengx dachengx left a comment

Choose a reason for hiding this comment

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

Thank you very much @juehang

@@ -57,7 +57,10 @@ class PeakletPositionsCNF(PeakletPositionsBase):

pred_function = straxen.URLConfig(
default=(
"jax://resource://flow_20240730.tar.gz?"
"jax://resource://xedocs://posrec_models"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will this PR only work after https://github.com/XENONnT/corrections/pull/314 is merged?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Currently xedocs hasn't been synced anyway, so it is also waiting on that. I told @LuisSanchez25 about https://github.com/XENONnT/corrections/pull/314 so he will wait till that is merged before syncing

@juehang
Copy link
Contributor Author

juehang commented Jan 16, 2025

@dachengx do you know why these tzinfo test failures are happening? They aren't related to any code I've modified

@GiovanniVolta GiovanniVolta marked this pull request as ready for review January 23, 2025 13:52
@GiovanniVolta
Copy link
Contributor

I have turn it into review mode since pos_rec map schema has been synced

sebvetter
sebvetter previously approved these changes Jan 23, 2025
LuisSanchez25
LuisSanchez25 previously approved these changes Jan 23, 2025
@dachengx dachengx dismissed stale reviews from LuisSanchez25 and sebvetter via c8292b9 January 24, 2025 05:11
sebvetter
sebvetter previously approved these changes Jan 24, 2025
@juehang
Copy link
Contributor Author

juehang commented Jan 24, 2025

Thanks for the fix @dachengx, seems like tests are now just failing on some python version issue.

@coveralls
Copy link

Coverage Status

coverage: 89.799% (+0.02%) from 89.777%
when pulling 871857a on cnf_urlconfig_fix
into 4519fa7 on master.

@dachengx dachengx merged commit 0c44889 into master Jan 24, 2025
6 of 7 checks passed
@dachengx dachengx deleted the cnf_urlconfig_fix branch January 24, 2025 20:46
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

Successfully merging this pull request may close these issues.

CNF model is hard coded in the plugin and should use xedocs Unify MLP and CNF's xedocs schema
6 participants