Skip to content

Conversation

@rwb27
Copy link
Collaborator

@rwb27 rwb27 commented Nov 28, 2024

This PR:

  • Updates the labthings dependency and makes use of the most recent Blob class for returning JPEGs.
  • Tests the process of reloading the tuning, and fixes a problem that stopped the test working
  • Moves the logic for resetting the camera into recalibrate_utils so it's properly tested
  • Tidies up code formatting
  • Only attempts to publish to testpypi when required

BlobOutput is dead! long live Blob. See release notes for labthings-fastapi v0.0.7
Fixed a typo in unused function, formatted, moved resetting of the
camera manager to a function.
Deliberately using a bad tuning file was breaking the tuning test - I couldn't
recreate Picamera objects.

I've now updated the default tuning
such that it fetches the camera's type at
import time - this means I can keep
resetting the tuning, even if the camera
is in an odd state.

It may be worth moving this logic into the
main module as well.
@rwb27 rwb27 merged commit 13806c1 into main Nov 28, 2024
1 check passed
@rwb27 rwb27 deleted the update_labthings branch November 28, 2024 16:56
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.

2 participants