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

fix missing facility specification #129

Merged
merged 3 commits into from
Jan 10, 2025

Conversation

JunAishima
Copy link
Contributor

 * default of nsls2 results in PASS API exception:
   httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://passservices.bnl.gov/....../NSLS-II/300047/null'
 * use facility_name instead of cycle.facility because this is of
   type `FacilityName`
 * ensure that the appropriate cycle is found, because
   the cycle name may be the same between multiple facilities
@JunAishima
Copy link
Contributor Author

also found that the original issue was due to mismatch of a cycle's PASS ID and the facility name associated with that cycle. thus, fixed queries where Cycle.find_one() was not specifying facility, resulting in the NSLS2 one always being retrieved

@stuartcampbell stuartcampbell merged commit e12eade into NSLS2:main Jan 10, 2025
4 checks passed
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.

3 participants