From 3b2e90df23e785f9a32585fba7bc168f400b0c59 Mon Sep 17 00:00:00 2001 From: kx79wq Date: Sun, 8 Dec 2024 22:44:34 +0100 Subject: [PATCH] FIX: add init files --- histogrammar/notebooks/__init__.py | 0 histogrammar/resources.py | 6 ++---- histogrammar/test_data/__init__.py | 0 3 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 histogrammar/notebooks/__init__.py create mode 100644 histogrammar/test_data/__init__.py diff --git a/histogrammar/notebooks/__init__.py b/histogrammar/notebooks/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/histogrammar/resources.py b/histogrammar/resources.py index 5675f2c..7b52d23 100644 --- a/histogrammar/resources.py +++ b/histogrammar/resources.py @@ -20,20 +20,18 @@ # Resources lookup file for histogrammar from importlib import resources -import histogrammar.test_data -import histogrammar.notebooks # data files that are shipped with histogrammar. _DATA = { _.name: _ - for _ in resources.files(histogrammar.test_data).iterdir() + for _ in resources.files("histogrammar.test_data").iterdir() } # Tutorial notebooks _NOTEBOOK = { p.name: p - for p in resources.files(histogrammar.notebooks).iterdir() if p.suffix == ".ipynb" + for p in resources.files("histogrammar.notebooks").iterdir() if p.suffix == ".ipynb" } # Resource types diff --git a/histogrammar/test_data/__init__.py b/histogrammar/test_data/__init__.py new file mode 100644 index 0000000..e69de29