Skip to content

Commit

Permalink
update to pyjavaz with fixed concurrency issues
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypinkard committed Jun 14, 2024
1 parent 7ce58ad commit 59ece1b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
2 changes: 0 additions & 2 deletions pycromanager/acquisition/RAMStorage_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ def read_image(self, channel=None, z=None, time=None, position=None, row=None, c
for k, v in axes.items():
java_hashmap.put(k, v)
tagged_image = self._java_RAM_data_storage.get_image(java_hashmap)
print('java ram storage class:', str(self._java_RAM_data_storage))
print('tagged image: ', str(tagged_image))
pixels = tagged_image.pix
metadata = tagged_image.tags
return pixels.reshape(metadata['Height'], metadata['Width'])
Expand Down
1 change: 0 additions & 1 deletion pycromanager/acquisition/java_backend_acquisitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ def __init__(
# while the acquisition is still running, and (optionally )so that a image_saved_fn can be called
# when images are written to disk/RAM storage
storage_java_class = data_sink.get_storage()
print(storage_java_class)
summary_metadata = storage_java_class.get_summary_metadata()
if directory is not None:
# NDTiff dataset saved to disk on Java side
Expand Down
8 changes: 2 additions & 6 deletions pycromanager/test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ def install_mm():



# @pytest.fixture(scope="session", params=['save_to_disk', 'RAM'])
@pytest.fixture(scope="session", params=['RAM'])

@pytest.fixture(scope="session", params=['save_to_disk', 'RAM'])
def setup_data_folder(request):
if request.param != 'save_to_disk':
yield None
Expand All @@ -147,9 +145,7 @@ def setup_data_folder(request):
shutil.rmtree(data_folder_path)


# @pytest.fixture(scope="session", params=['python_backend', 'java_backend'])
@pytest.fixture(scope="session", params=['java_backend'])

@pytest.fixture(scope="session", params=['python_backend', 'java_backend'])
def launch_mm_headless(request, install_mm):
python_backend = request.param == 'python_backend'
mm_install_dir = install_mm
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ ndstorage>=0.1.5
docstring-inheritance
pymmcore
sortedcontainers
pyjavaz>=1.2
pyjavaz>=1.2.1

0 comments on commit 59ece1b

Please sign in to comment.