diff --git a/docs/examples/ts2img.ipynb b/docs/examples/ts2img.ipynb index 223625e..389d151 100644 --- a/docs/examples/ts2img.ipynb +++ b/docs/examples/ts2img.ipynb @@ -27,21 +27,21 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 9, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "/home/wpreimes/shares/home/code/repurpose/src/repurpose/utils.py:6: UserWarning: Numpy is already imported. Environment variables set in repurpose.utils wont have any effect!\n", + "/home/wpreimes/shares/home/code/repurpose/src/repurpose/process.py:6: UserWarning: Numpy is already imported. Environment variables set in repurpose.utils wont have any effect!\n", " warnings.warn(\"Numpy is already imported. Environment variables set in \"\n" ] }, { "data": { - "text/plain": "" + "text/plain": "" }, - "execution_count": 1, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" }, @@ -61,7 +61,7 @@ "import matplotlib.pyplot as plt\n", "from matplotlib.lines import Line2D\n", "import numpy as np\n", - "from repurpose.utils import rootdir\n", + "from repurpose.process import rootdir\n", "\n", "source_grid = load_grid(os.path.join(rootdir(), \"docs\", \"examples\", \"assets\", \"warp_subgrid_AUT.nc\"))\n", "y = np.arange(46.3, 49.2, 0.1)\n", @@ -101,7 +101,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 10, "id": "406f83ff-7725-4710-8048-1a2311b23963", "metadata": { "tags": [] @@ -139,13 +139,13 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 11, "outputs": [ { "data": { - "text/plain": "" + "text/plain": "" }, - "execution_count": 3, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" }, @@ -198,7 +198,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 12, "outputs": [], "source": [ "from repurpose.ts2img import Ts2Img\n", @@ -240,21 +240,21 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 13, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "Images are stored in /tmp/tmps22ozjzr\n" + "Images are stored in /tmp/tmp72x9hsa2\n" ] }, { "name": "stderr", "output_type": "stream", "text": [ - "Processed: 100%|██████████| 3/3 [00:06<00:00, 2.04s/it]\n", - "Processed: 100%|██████████| 14/14 [00:00<00:00, 112.06it/s]\n" + "Processed: 100%|██████████| 3/3 [00:10<00:00, 3.52s/it]\n", + "Processed: 100%|██████████| 14/14 [00:00<00:00, 109.31it/s]\n" ] } ], @@ -291,13 +291,13 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 14, "outputs": [ { "data": { - "text/plain": "" + "text/plain": "" }, - "execution_count": 6, + "execution_count": 14, "metadata": {}, "output_type": "execute_result" }, @@ -355,7 +355,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 15, "outputs": [ { "name": "stdout", @@ -382,7 +382,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 16, "outputs": [ { "name": "stdout", diff --git a/src/repurpose/utils.py b/src/repurpose/process.py similarity index 100% rename from src/repurpose/utils.py rename to src/repurpose/process.py diff --git a/src/repurpose/ts2img.py b/src/repurpose/ts2img.py index bb8b056..9259222 100644 --- a/src/repurpose/ts2img.py +++ b/src/repurpose/ts2img.py @@ -1,4 +1,4 @@ -from repurpose.utils import parallel_process_async, idx_chunks +from repurpose.process import parallel_process_async, idx_chunks import logging import numpy as np import pandas as pd diff --git a/tests/test_docs/test_examples.py b/tests/test_docs/test_examples.py index 442b972..93c78dd 100644 --- a/tests/test_docs/test_examples.py +++ b/tests/test_docs/test_examples.py @@ -8,7 +8,7 @@ from nbconvert.preprocessors import ExecutePreprocessor import nbformat import pytest -from repurpose.utils import rootdir +from repurpose.process import rootdir examples_path = os.path.join(rootdir(), 'docs', 'examples') diff --git a/tests/test_utils.py b/tests/test_process.py similarity index 94% rename from tests/test_utils.py rename to tests/test_process.py index 437233f..c320a97 100644 --- a/tests/test_utils.py +++ b/tests/test_process.py @@ -4,7 +4,7 @@ import tempfile import logging -from repurpose.utils import parallel_process_async, idx_chunks +from repurpose.process import parallel_process_async, idx_chunks def test_index_chunks(): timestamps = pd.date_range('2020-07-01', '2020-07-09', freq='1D')