Skip to content

Conversation

@rosesyrett
Copy link
Contributor

added queries to hkl routes so that scan results can be narrowed by angle bounds, as in Irakli's example code

Currently in the latest release of the app, most hkl get routes return a large number of results, which must then be filtered by the client to be beamline specific. What this PR attempts to do is add query methods which allow a narrowing of results by angle constraints.

Some key notes: there is a bit of code repetition due to this that I'm not happy with. Maybe I need to write a wrapper around the functions I want to do this with - all of the relevant methods have exactly the same check for the query parameters to be valid, for example.

Additionally, I've introduced a wrapper to turn my synchronous functions into asynchronous ones. This probably shouldn't have been in this PR, however it was bugging me.

Copy link
Contributor

@callumforrester callumforrester left a comment

Choose a reason for hiding this comment

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

Looks good, see comments

@rosesyrett rosesyrett merged commit 29ae87a into master Aug 23, 2022
@rosesyrett rosesyrett deleted the addQueriesToHklRoutes branch August 23, 2022 14:08
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