tiagocoutinho / hamamatsu

Python library for hamamatsu detectors (lima plugin included)
GNU General Public License v3.0
11 stars 5 forks source link

Running on Linux #8

Open nicolaromano opened 2 months ago

nicolaromano commented 2 months ago

Any chances to have this running on Linux as well?

Currently when importing the module I get

AttributeError: module 'ctypes' has no attribute 'windll'

In dcam.py at line 1790

self._lib = ctypes.windll.dcamapi

Not quite sure how I can fix that

tiagocoutinho commented 2 months ago

Hi, thanks for trying the library. Unfortunately I no longer work for the institute that used this type of camera so I'm not able to make any improvements myself

This is a very interesting feature to have. I didn't even remember that hamamatsu provided shared libraries for linux. Maybe they didn't 3 years ago.

I'm happy to review any PRs

nicolaromano commented 2 months ago

Hi, that's unfortunate. I will try and look through the code, see if I can find some simple workaround for that