Skip to content

Commit

Permalink
Merge pull request #749 from AFM-SPM/ns-rse/snoop
Browse files Browse the repository at this point in the history
Add snoop as a dependency but disable by default
  • Loading branch information
ns-rse committed Dec 8, 2023
2 parents 7d7546f + cc353b9 commit 42d1d19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,22 @@ keywords = [
]
requires-python = ">=3.9"
dependencies = [
"h5py",
"igor2",
"matplotlib",
"numpy",
"pandas",
"pySPM",
"pyfiglet",
"pyyaml",
"ruamel.yaml",
"schema",
"scikit-image",
"scipy",
"seaborn",
"snoop",
"tifffile",
"tqdm",
"pyfiglet",
"h5py"
]

[project.optional-dependencies]
Expand Down
4 changes: 4 additions & 0 deletions topostats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from importlib.metadata import version

import matplotlib.pyplot as plt
import snoop

from .logs.logs import setup_logger
from .theme import Colormap
Expand All @@ -13,3 +14,6 @@

plt.register_cmap(cmap=Colormap("nanoscope").get_cmap())
plt.register_cmap(cmap=Colormap("gwyddion").get_cmap())

# Disable snoop
snoop.install(enabled=False)

0 comments on commit 42d1d19

Please sign in to comment.