Skip to content

Commit

Permalink
bump ndtiff version
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypinkard committed Sep 7, 2023
1 parent 5a4b9e9 commit 03f6656
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<dependency>
<groupId>org.micro-manager.ndtiffstorage</groupId>
<artifactId>NDTiffStorage</artifactId>
<version>2.15.0</version>
<version>2.15.1</version>
</dependency>
</dependencies>

Expand Down
10 changes: 6 additions & 4 deletions pycromanager/test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def install_mm(download_mm_nightly):
print('Using Micro-manager running on port 4827 for testing')
yield
else:
if os.path.isdir(mm_install_dir):
if os.path.isdir(mm_install_dir) and os.listdir(mm_install_dir):
# Check if Micro-manager installation is present in mm_install_dir.
# If so, the latest Micro-manager nightly build will not be installed.
print(f'Existing Micro-manager installation found at {mm_install_dir}')
Expand All @@ -108,7 +108,9 @@ def install_mm(download_mm_nightly):
"~/Micro-Manager-nightly"'''
)

os.mkdir(mm_install_dir)
# mkdir if not exists
if not os.path.isdir(mm_install_dir):
os.mkdir(mm_install_dir)

print(f'Installing Micro-manager nightly build at: {mm_install_dir}')
cmd = f"{mm_installer} /SP /VERYSILENT /SUPRESSMSGBOXES /CURRENTUSER /DIR={mm_install_dir} /LOG={mm_install_log_path}"
Expand All @@ -133,7 +135,7 @@ def install_mm(download_mm_nightly):

# Copy the pycromanagerjava.jar file that was compiled by the github action
# into the nightly build so that it will test with the latest code
compiled_jar_path = os.path.join(java_path, 'target', 'PycromanagerJava-[0-9]*.[0-9]*.[0-9]*.jar') # Destination path where the jar file should be copied to
compiled_jar_path = os.path.join(java_path, 'target', 'PycromanagerJava-[0-9]*.[0-9]*.[0-9].jar') # Destination path where the jar file should be copied to
destination_path = os.path.join(mm_install_dir, 'plugins', 'Micro-Manager', 'PycromanagerJava.jar')
# Find the actual file that matches the pattern and copy it to the destination
for file_path in glob.glob(compiled_jar_path):
Expand Down Expand Up @@ -187,7 +189,7 @@ def launch_mm_headless(install_mm):
if "JAVA" in os.environ:
java_loc = os.environ["JAVA"]

start_headless(mm_install_dir, config_file, java_loc=java_loc)
start_headless(mm_install_dir, config_file, java_loc=java_loc, debug=True)

# yield
#
Expand Down
2 changes: 1 addition & 1 deletion pycromanager/test/test_acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def test_multi_d_acq(launch_mm_headless, setup_data_folder):
order="tcz",
)

with Acquisition(setup_data_folder, 'acq', show_display=False,
with Acquisition(setup_data_folder, 'acq', show_display=False, debug=True,
notification_callback_fn=lambda n : print(n.to_json())) as acq:
acq.acquire(events)

Expand Down

0 comments on commit 03f6656

Please sign in to comment.