Skip to content

Commit

Permalink
Merge pull request #4 from henrypinkard/main
Browse files Browse the repository at this point in the history
add new api function
  • Loading branch information
henrypinkard authored Jul 13, 2024
2 parents ebe584d + 8453487 commit b0f80cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mmpycorex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"""
from ._version import __version__, version_info

from .launcher import create_core_instance, terminate_core_instances
from .launcher import create_core_instance, terminate_core_instances, is_pymmcore_active
from .core import Core
from .install import download_and_install_mm, find_existing_mm_install
2 changes: 1 addition & 1 deletion src/mmpycorex/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version_info = (0, 1, 7)
version_info = (0, 2, 0)
__version__ = ".".join(map(str, version_info))
3 changes: 3 additions & 0 deletions src/mmpycorex/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ def _create_pymmcore_instance():
_JAVA_HEADLESS_SUBPROCESSES = []
_PYMMCORES = []

def is_pymmcore_active():
return len(_PYMMCORES) > 0

def terminate_core_instances(debug=False):

for p in _JAVA_HEADLESS_SUBPROCESSES:
Expand Down

0 comments on commit b0f80cf

Please sign in to comment.