Johannes Baiter

Results 104 comments of Johannes Baiter

Can you add a unit test for the `range_union` method? Then I can take a shot at debugging it :-) To fix the merge conflict, just move the new function...

Just had a look at the source code, looks like I misread the documentation before complaining, it does have OpenJPEG support already, sorry! https://github.com/dasch-swiss/sipi/blob/main/src/formats/SipiIOOpenJ2k.cpp

fwiw, we're seeing the same behavior with CUDA 11.7 on a 8xA100 setup here.

:+1: Works fine here :-)

Hm... It would probably be a good idea to consult the `gphoto` source code and see which library calls are made based on your command-line query. I will probably also...

The new version automatically maps from gphoto2 logging levels to the corresponding Python logging levels: https://github.com/jbaiter/gphoto2-cffi/blob/master/gphoto2cffi/backend.py#L45, https://github.com/jbaiter/gphoto2-cffi/blob/master/gphoto2cffi/backend.py#L75 So it should be enough to use Python's standard logging mechanisms to filter...

I'm not really a fan of the module-level variable... We could instead set the default logging level for the library to `logging.CRITICAL` (so that errors and warnings will not be...

Well, it would still be, since the library does not log with `CRITICAL` at all. The effect of setting that level would be to silence the logger as much as...

This is really curious, since I'm using the exact same function in the C API that piggyphoto does (`gp_camera_capture_preview`, [piggyphoto](https://github.com/alexdu/piggyphoto/blob/f804674a3b01b512a850706c79d7eb1623ee3f3e/piggyphoto/__init__.py#L317), [gphoto2-cffi](https://github.com/jbaiter/gphoto2-cffi/blob/master/gphoto2/gphoto2.py#L745)). The only difference I can see is that we...

Thank you both for the confirmation! > Is there any chance you could implement the "leave_locked" behavior you mentioned into gphoto2cffi? Absolutely, unfortunately I currently don't have my cameras with...