Malhar Vora
Malhar Vora
@dantezhu Can you please post your full code or a POC that can reproduce an issue, here if possible ?
I think slog-stream is not used anymore. Can we have a new Drain that take Decorator as input and wrap FullFormat Drain to write output to file ?
I want to look into this one.
Hey @LeeKamentsky . I appreciate your reply. The issue is my script doesn't use javabridge directly but through another package called [python-bioformat](https://github.com/CellProfiler/python-bioformats). So, I am not sure if your comments...
Yeah that is why I am not sure how to apply what you said, to my problem.
Here is my code. ``` if __name__ == "__main__": javabridge.start_vm(class_path=bioformats.JARS) tif_file_path = "/tmp/xyz.tif" try: with get_image_reader('my_image_key', tif_file_path) as reader: r = reader.rdr print(f"Metadata: {r.getMetadata()}") except Exception as e: print(e) javabridge.kill_vm()...
It alt least show some meaningful but still unable to iterate the HashTable. I use following code. ``` m = JWrapper(r.getGlobalMetadata()) keys = m.keySet() for k in keys.iterator(): print(k) ```...
Tried this one. ``` m = JWrapper(r.getGlobalMetadata()) while m.elements().hasMoreElements(): print(m.elements().nextElement()) ``` It prints `BlackIsZero` infinitely. Also, tried following. ``` while m.keys().hasMoreElements(): print(m.keys().nextElement()) ``` It prints `PhotometricInterpretation` infinitely.
Got success with following code. ``` m = JWrapper(r.getMetadata()) entry_set = m.entrySet() entry_set_iterator = entry_set.iterator() while entry_set_iterator.hasNext(): entry = entry_set_iterator.next() print(entry.getKey()) print(entry.getValue()) print("-----------------") ```
**For Ubuntu:** ``` cd /lib/x86_64-linux-gnu/ sudo ln -sf libudev.so.1 libudev.so.0 ``` **For CentOS:** ``` cd /usr/lib64/ sudo ln -sf libudev.so.1 libudev.so.0 ```