intrepidcs / python_ics

Library for interfacing with Intrepid devices in Python
MIT License
61 stars 29 forks source link

Fix icsneoLoadDefaultSettings args #151

Closed kjohannes-intrepidcs closed 1 year ago

kjohannes-intrepidcs commented 1 year ago

The device settings example would throw on calling load_default_settings() with the following:

ics.ics.RuntimeError: Error: load_default_settings(): Failed to Retrieve address of function 'icsneoLoadDefaultSettings': dlsym(0x2021f20a0, icsneoLoadDefaultSettings): symbol not found for library '@loader_path/libicsneolegacy.dylib'

It was passing an int device handle instead of a device handle object, causing the dynamic library lookup to fail on function signature differences.