From b42e7d4138ecca1e51807350f058f2ddcb19af08 Mon Sep 17 00:00:00 2001 From: Henry Pinkard <7969470+henrypinkard@users.noreply.github.com> Date: Fri, 22 Sep 2023 07:55:23 -0700 Subject: [PATCH] fix headless mode with no config file --- pycromanager/_version.py | 2 +- pycromanager/headless.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pycromanager/_version.py b/pycromanager/_version.py index ffb96782..fc883cc8 100644 --- a/pycromanager/_version.py +++ b/pycromanager/_version.py @@ -1,2 +1,2 @@ -version_info = (0, 29, 4) +version_info = (0, 29, 5) __version__ = ".".join(map(str, version_info)) diff --git a/pycromanager/headless.py b/pycromanager/headless.py index 771a39e9..2601f9fb 100644 --- a/pycromanager/headless.py +++ b/pycromanager/headless.py @@ -119,7 +119,7 @@ def stop_headless(debug=False): atexit.register(stop_headless) def start_headless( - mm_app_path: str, config_file: str='', java_loc: str=None, + mm_app_path: str, config_file: str=None, java_loc: str=None, python_backend=False, core_log_path: str='', buffer_size_mb: int=1024, max_memory_mb: int=2000, port: int=_Bridge.DEFAULT_PORT, debug=False): @@ -185,7 +185,7 @@ def start_headless( # "-XX:MaxDirectMemorySize=1000", "org.micromanager.remote.HeadlessLauncher", str(port), - config_file, + config_file if config_file is not None else '', str(buffer_size_mb), core_log_path, ], cwd=mm_app_path, stdout=subprocess.PIPE