Closed klauer closed 3 years ago
Have a preliminary working material prioritization function that matches up with those expected from Matt's beamline config prototype.
~I don't much like its API, so that may get refactored prior to merging, along with some different tests.~
Some interesting things during testing. The following plots are based on the filter material priority algorithm:
Separately, I've reintroduced floor/ceiling and explicit checks to be extra-certain that all diamond filters are marked for insertion prior to silicon filters. I think the tests are reasonably exhaustive and straightforward now, so 🤞 this should be good to go.
Merging before the break, before I forget that this was in (what I think) an OK state.
Context
See linked issues for context: Closes #58 Closes #47
Steps
get_best_config_with_material_priority
Tests
Tests are passing locally, but failing on Travis. This will be resolved at a later date.
Future
(Separate PR/issue) I think in its current form,
find_configs
won't work for the SXR ladder-style variant and will require further thought.