-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
74 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,3 +86,6 @@ venv/ | |
# Scripts | ||
/scripts/* | ||
!/scripts/examples | ||
|
||
# Ignore dynaconf secret files | ||
.secrets.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from pathlib import Path | ||
|
||
from dynaconf import Dynaconf | ||
|
||
# Preferences settings | ||
|
||
# The settings are in the root directory, three directories up | ||
SETTINGS_PATH = (Path(__file__).parent / "settings.toml").resolve() | ||
|
||
preferences = Dynaconf( | ||
envvar_prefix="DYNACONF", | ||
settings_files=SETTINGS_PATH, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# napari-imagej Settings | ||
|
||
# USERS BEWARE: | ||
# This toml file will soon be replaced with napari's contribution configuration. | ||
|
||
# Path to a local ImageJ2 installation (e.g. /Applications/Fiji.app), | ||
# OR version of net.imagej:imagej artifact to launch (e.g. 2.3.0), | ||
# OR endpoint of another artifact built on ImageJ2 (e.g. sc.fiji:fiji), | ||
# OR list of Maven artifacts to include (e.g. | ||
# ['net.imagej:imagej:2.3.0', 'net.imagej:imagej-legacy', 'net.preibisch:BigStitcher']). | ||
# The default is the latest version of ImageJ2. | ||
imagej_directory_or_endpoint = "net.imagej:imagej" | ||
|
||
# This can be used to identify whether transferred data between ImageJ2 and napari | ||
# should be selected via activation or by user selection via a dialog. | ||
# By default, the active layer/window is chosen for transfer between applications. | ||
# By setting this value to false, a popup will be shown instead. | ||
choose_active_layer = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
""" | ||
A module used to help find napari-imagej widget resources | ||
""" | ||
from pathlib import Path | ||
|
||
PATH = Path(__file__).parent.resolve() | ||
RESOURCES = {x.stem: str(x) for x in PATH.iterdir() if x.suffix != ".py"} | ||
|
||
|
||
def resource_path(name: str) -> str: | ||
"""Return path to a resource in this folder.""" | ||
if name not in RESOURCES: | ||
raise ValueError( | ||
f"{name} is not a known resource! Known resources: {RESOURCES}" | ||
) | ||
return RESOURCES[name] |
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters