Closed jdmanton closed 3 years ago
Hey @jdmanton, thank you for reporting the bug and trying the software out.
I think the problem here is that we don't have a MockPhotometrics, as MockHamamatsu is for Hamamatsu cameras when the camera initialization fails. The reason is that I don't own a Photometrics camera and we got a demo for one week, so I didn't have time to understand what parameters a mocker would require. I would suggest you can either change the manager to HamamatsuManager (in the configuration file) when you don't want to use the camera, or add the sensor_size parameter to the mocker. Then you can check if it works or it still needs other parameters and we can make then a PhotometricsMocker eventually.
But anyway, could you give more feedback in why the camera didn't work? Maybe I can help you in that since I also found some issues. Most likely is because I had to change the PyVCAM package (I forked it to my github user and created a new branch (https://github.com/kasasxav/PyVCAM/commits/threading-and-buffering) because I found some issues (https://github.com/Photometrics/PyVCAM/issues/18), especially when synchronizing the camera through an external trigger with other devices via the Nidaq, but maybe if you want to use it for simpler setups we can also find a way around with the original library.
Hi @jdmanton, I confirm the issue is that the only manager that can be used without the camera is Hamamatsu because it's the only mocker we have implemented. If you want to talk more about why the Photometrics didn't work let me know but I will close this issue, for now, we will consider doing a mocker for Photometrics later on.
I have this same problem with ImSwitch, I need to work with a Photometrics Prime BSI camera. when I choose my configuration for the ImSwitch I get this AttributeError message !
@Focus2Focus can you open a new issue and develop more about your problem? Copying the error message, is the camera on while you get the error, etc?
Bug description My problems are actually two-fold, in that I can't get my Photometrics camera to work with ImSwitch, but that's secondary to this issue. ImSwitch starts and loads my configuration (below), fails to load the Photometrics camera and then falls back to the Hamamatsu mocker. Unfortunately, this also fails as
MockHamamatsu
has nosensor_size
attribute.How to reproduce Load ImSwitch with a hardware configuration that does not contain a camera that works, e.g.
Expected behavior ImSwitch should probably either complain that there's no camera, or successfully load a mock camera.
Screenshots Error log:
Environment
Additional context Add any other context about the problem here, if applicable.