From 10f803b58aafffa7afcf161308f9031dbaa26ac4 Mon Sep 17 00:00:00 2001 From: andrewgryan Date: Mon, 2 Mar 2020 16:49:24 +0000 Subject: [PATCH] fix cProfile has no attr "run" caused by profile.py file --- forest/__init__.py | 2 +- forest/{profile.py => _profile.py} | 0 forest/main.py | 2 +- test/test_profile.py | 3 ++- 4 files changed, 4 insertions(+), 3 deletions(-) rename forest/{profile.py => _profile.py} (100%) diff --git a/forest/__init__.py b/forest/__init__.py index 8f5727977..b40648c62 100644 --- a/forest/__init__.py +++ b/forest/__init__.py @@ -25,7 +25,7 @@ .. automodule:: forest.presets """ -__version__ = '0.12.5' +__version__ = '0.12.6' from .config import * from . import ( diff --git a/forest/profile.py b/forest/_profile.py similarity index 100% rename from forest/profile.py rename to forest/_profile.py diff --git a/forest/main.py b/forest/main.py index 3f682ffbf..62c01b371 100644 --- a/forest/main.py +++ b/forest/main.py @@ -5,11 +5,11 @@ import numpy as np import os import glob +from forest import _profile as profile from forest import ( satellite, screen, tools, - profile, series, data, load, diff --git a/test/test_profile.py b/test/test_profile.py index b5a6f03a5..c00ad8120 100644 --- a/test/test_profile.py +++ b/test/test_profile.py @@ -6,7 +6,8 @@ import numpy.testing as npt import datetime as dt import bokeh.plotting -from forest import screen, profile, redux, rx, config +from forest import screen, redux, rx, config +from forest import _profile as profile @pytest.mark.parametrize("state,expect", [