Skip to content

Commit ec2d037

Browse files
committed
update caerus version installer
1 parent adb589f commit ec2d037

File tree

6 files changed

+19
-117
lines changed

6 files changed

+19
-117
lines changed

findpeaks/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
__author__ = 'Erdogan Tasksen'
3939
__email__ = 'erdogant@gmail.com'
40-
__version__ = '2.7.4'
40+
__version__ = '2.7.5'
4141

4242

4343
# module level doc-string

findpeaks/examples.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,19 @@
99
import matplotlib.pyplot as plt
1010
# from findpeaks import findpeaks
1111

12-
# %%
12+
# Import library
13+
from findpeaks import findpeaks
14+
# Initialize findpeaks with cearus method.
15+
# The default setting is that it only return peaks-vallyes with at least 5% difference. We can change this using params
16+
# fp = findpeaks(method='caerus', params={'minperc': 10, 'window': 50})
17+
fp = findpeaks(method='caerus')
18+
# Import example data
19+
X = fp.import_example('facebook')
20+
# Fit
21+
results = fp.fit(X)
22+
# Make the plot
23+
fp.plot()
24+
1325

1426
# %%
1527
# Import library
@@ -247,18 +259,6 @@
247259

248260

249261
# %%
250-
# Import library
251-
from findpeaks import findpeaks
252-
# Initialize findpeaks with cearus method.
253-
# The default setting is that it only return peaks-vallyes with at least 5% difference. We can change this using params
254-
# fp = findpeaks(method='caerus', params={'minperc': 10, 'window': 50})
255-
fp = findpeaks(method='caerus')
256-
# Import example data
257-
X = fp.import_example('facebook')
258-
# Fit
259-
results = fp.fit(X)
260-
# Make the plot
261-
fp.plot()
262262

263263
# %%
264264
from findpeaks import findpeaks

findpeaks/findpeaks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ def import_example(data='2dpeaks', url=None, sep=';', datadir=None):
17401740
# X = np.c_[x, y]
17411741
return y
17421742
elif (data == 'btc') or (data == 'facebook'):
1743-
cs = caerus(verbose='info')
1743+
cs = caerus(verbose=get_logger())
17441744
X = cs.download_example(name=data)
17451745
return X
17461746
else:

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ dependencies = [
4747
'pandas',
4848
'tqdm',
4949
'requests',
50-
'caerus>=0.1.9',
50+
'caerus>=1.0.1',
5151
'xarray',
5252
'joblib',
5353
'adjustText',
54+
'opencv-python-headless',
5455
]
5556

5657
[project.urls]

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ numpy
44
pandas
55
tqdm
66
requests
7-
caerus>=0.1.9
7+
caerus>=1.0.0
88
xarray
99
joblib
1010
adjustText
11+
opencv-python-headless

test_fix.py

Lines changed: 0 additions & 100 deletions
This file was deleted.

0 commit comments

Comments
 (0)