8 Commits

Author SHA1 Message Date
GotthardG
19ef20e6b0 Fix type and handle missing dewar_id in sample router.
Updated puck_id type from str to int for better type consistency. Added a fallback value of -1 for pucks with missing dewar_id to prevent potential errors when querying pucks.
2025-01-10 13:39:10 +01:00
GotthardG
f233058070 Add image upload endpoint and fix puck location handling
Introduced `/samples/{sample_id}/upload-images` API for uploading images tied to samples, validating file types, and saving them in structured directories. Fixed `puck_location_in_dewar` type handling in puck routes. Updated project version in `pyproject.toml`.
2025-01-10 11:31:51 +01:00
GotthardG
f10a5eaec2 Update test functions and bump version to 0.1.0a18
Refactor `testfunctions.ipynb` by standardizing API client code blocks and improving structure with `%` cells. Added PUT calls for updating TELL positions and GET requests for fetching pucks. Updated `pyproject.toml` to increment version to 0.1.0a18.
2025-01-10 10:50:53 +01:00
GotthardG
d6910411f1 Add default values to optional fields in SampleUpdate 2025-01-10 10:44:03 +01:00
GotthardG
1e766fa620 Add default values to optional fields in SampleUpdate 2025-01-10 10:00:14 +01:00
GotthardG
0f6759e417 Add default values to optional fields in SampleUpdate 2025-01-09 22:51:26 +01:00
GotthardG
ac38bc3bb6 Refactor puck handling for responses
Revised and optimized the `get_pucks_with_tell_position` endpoint to streamline logic and enhance clarity.
2025-01-09 20:36:03 +01:00
GotthardG
c45a46b07b Add example scripts and enhance puck event queries
Introduced a new Jupyter Notebook with API usage examples for managing pucks and samples. Refactored puck retrieval logic to include the latest event type and `tell_position`, improving data accuracy. Updated backend version to 0.1.0a16 accordingly.
2025-01-09 16:56:38 +01:00