Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.

Add get routes for reflections/orientations#138

Merged
rosesyrett merged 3 commits into
masterfrom
add_reference_reflection_get_routes
Nov 30, 2022
Merged

Add get routes for reflections/orientations#138
rosesyrett merged 3 commits into
masterfrom
add_reference_reflection_get_routes

Conversation

@rosesyrett
Copy link
Copy Markdown
Contributor

Some work for conic scannables need direct retrieval of reflections/orientations in the UB Calculation object.

This PR aims to provide that functionality.

I found it easiest to create a new folder, 'types', which would store the dataclasses that my pydantic response models would use. This is because, although ideally this should be done from Irakli's code in diffcalc-core, this is difficult to do and would require extra upkeep on his part. To me it made more sense to have a structure where, no matter how Irakli serialises his objects in diffcalc-core, I can provide the same response models to any users accessing the API. This would then not affect how the objects are stored in mongo.

@rosesyrett rosesyrett merged commit 16b0baf into master Nov 30, 2022
@rosesyrett rosesyrett deleted the add_reference_reflection_get_routes branch November 30, 2022 15:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants