ThatsTheEnd / horiba-python-sdk

MIT License
3 stars 3 forks source link

First CCD version #35

Closed w-samuelgauthier closed 4 months ago

w-samuelgauthier commented 5 months ago

Description

Adds a first version of the CCD to the supported single devices.

Related Issue

16

Type of Change

Checklist

ThatsTheEnd commented 5 months ago

Hi Samuel, very nice work! I added synchronous examples because horiba requested them. Should we add logging in the appropriate places? On the hardware computer I have the problem that the ICL starts no matter whether I request it to start in the example or not. I put a comment on the code. Cheers, Niko

w-samuelgauthier commented 5 months ago

I added an error handling that loads the json file with all the ICL errors. The handler is created in the DeviceManager. Each time a response is received from the ICL, the errors are logged according their level (I just did the CCD and will do the Monochromator on another branch). There is an internal mapping of error levels and log levels which is needed, because the level names may not be the same between the json file and the loguru library