Skip to content

Commit 9f5d6fb

Browse files
authored
Merge pull request #443 from ThomasMBury/development
Update requirements
2 parents c98b5e7 + 66f6fb0 commit 9f5d6fb

File tree

4 files changed

+40
-45
lines changed

4 files changed

+40
-45
lines changed

docs/source/conf.py

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,17 @@
1515

1616
import os
1717
import sys
18-
sys.path.insert(0, os.path.abspath('../../ewstools/'))
1918

19+
sys.path.insert(0, os.path.abspath("../../ewstools/"))
2020

2121

2222
# -- Project information -----------------------------------------------------
23-
project = 'ewstools'
24-
copyright = '2022, Thomas M Bury'
25-
author = 'Thomas M Bury'
23+
project = "ewstools"
24+
copyright = "2022, Thomas M Bury"
25+
author = "Thomas M Bury"
2626

2727
# Semantic version number
28-
version = '2.0.1'
29-
30-
28+
version = "2.1.1"
3129

3230
# -- General configuration ---------------------------------------------------
3331

@@ -38,30 +36,27 @@
3836
# Add any Sphinx extension module names here, as strings. They can be
3937
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4038
# ones.
41-
extensions = [
42-
'sphinx.ext.autodoc',
43-
'sphinx.ext.napoleon'
44-
]
39+
extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon"]
4540

4641
# Add any paths that contain templates here, relative to this directory.
47-
templates_path = ['_templates']
42+
templates_path = ["_templates"]
4843

4944
# The suffix(es) of source filenames.
5045
# You can specify multiple suffix as a list of string:
5146
#
52-
source_suffix = ['.rst', '.md']
47+
source_suffix = [".rst", ".md"]
5348
# source_suffix = {'.rst': 'restructuredtext'}
5449

5550

5651
# The master toctree document.
57-
master_doc = 'index'
52+
master_doc = "index"
5853

5954
# The language for content autogenerated by Sphinx. Refer to documentation
6055
# for a list of supported languages.
6156
#
6257
# This is also used if you do content translation via gettext catalogs.
6358
# Usually you set "language" from the command line for these cases.
64-
language = 'en'
59+
language = "en"
6560

6661
# List of patterns, relative to source directory, that match files and
6762
# directories to ignore when looking for source files.
@@ -77,7 +72,7 @@
7772
# The theme to use for HTML and HTML Help pages. See the documentation for
7873
# a list of builtin themes.
7974
#
80-
html_theme = 'sphinx_rtd_theme'
75+
html_theme = "sphinx_rtd_theme"
8176

8277

8378
# Theme options are theme-specific and customize the look and feel of a theme
@@ -105,7 +100,7 @@
105100
# -- Options for HTMLHelp output ---------------------------------------------
106101

107102
# Output file base name for HTML help builder.
108-
htmlhelp_basename = 'ewstoolsdoc'
103+
htmlhelp_basename = "ewstoolsdoc"
109104

110105

111106
# -- Options for LaTeX output ------------------------------------------------
@@ -114,15 +109,12 @@
114109
# The paper size ('letterpaper' or 'a4paper').
115110
#
116111
# 'papersize': 'letterpaper',
117-
118112
# The font size ('10pt', '11pt' or '12pt').
119113
#
120114
# 'pointsize': '10pt',
121-
122115
# Additional stuff for the LaTeX preamble.
123116
#
124117
# 'preamble': '',
125-
126118
# Latex figure (float) alignment
127119
#
128120
# 'figure_align': 'htbp',
@@ -132,19 +124,15 @@
132124
# (source start file, target name, title,
133125
# author, documentclass [howto, manual, or own class]).
134126
latex_documents = [
135-
(master_doc, 'ewstools.tex', 'ewstools Documentation',
136-
'Thomas M Bury', 'manual'),
127+
(master_doc, "ewstools.tex", "ewstools Documentation", "Thomas M Bury", "manual"),
137128
]
138129

139130

140131
# -- Options for manual page output ------------------------------------------
141132

142133
# One entry per manual page. List of tuples
143134
# (source start file, name, description, authors, manual section).
144-
man_pages = [
145-
(master_doc, 'ewstools', 'ewstools Documentation',
146-
[author], 1)
147-
]
135+
man_pages = [(master_doc, "ewstools", "ewstools Documentation", [author], 1)]
148136

149137

150138
# -- Options for Texinfo output ----------------------------------------------
@@ -153,9 +141,15 @@
153141
# (source start file, target name, title, author,
154142
# dir menu entry, description, category)
155143
texinfo_documents = [
156-
(master_doc, 'ewstools', 'ewstools Documentation',
157-
author, 'ewstools', 'One line description of project.',
158-
'Miscellaneous'),
144+
(
145+
master_doc,
146+
"ewstools",
147+
"ewstools Documentation",
148+
author,
149+
"ewstools",
150+
"One line description of project.",
151+
"Miscellaneous",
152+
),
159153
]
160154

161155

@@ -174,6 +168,4 @@
174168
# epub_uid = ''
175169

176170
# A list of files that should not be packed into the epub file.
177-
epub_exclude_files = ['search.html']
178-
179-
171+
epub_exclude_files = ["search.html"]

ewstools/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,10 +559,10 @@ def compute_ktau(self, tmin="earliest", tmax="latest"):
559559

560560
# Get tmin and tmax values if using extrema
561561
if tmin == "earliest":
562-
tmin = self.ews.dropna().index[0]
562+
tmin = self.ews.dropna(how="all").index[0]
563563

564564
if tmax == "latest":
565-
tmax = self.ews.dropna().index[-1]
565+
tmax = self.ews.dropna(how="all").index[-1]
566566

567567
# Get cropped data
568568
df_ews = self.ews[(self.ews.index >= tmin) & (self.ews.index <= tmax)].copy()

requirements_dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ plotly==5.9.0
1313
lmfit==1.0.3
1414
statsmodels==0.13.2
1515
scipy==1.8.1
16+
deprecation==2.1.0
17+
EntropyHub==2.0
1618
tensorflow==2.11.1
17-
deprecation==2.1.0

setup.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
with open("README.md", "r") as fh:
44
long_description = fh.read()
55

6-
requirements = ['pandas>=0.23.0',
7-
'numpy>=1.14.0',
8-
'plotly>=2.3.0',
9-
'lmfit>=0.9.0',
10-
'arch>=4.4',
11-
'statsmodels>=0.9.0',
12-
'scipy>=1.0.1',
13-
'deprecation>=2.0',
14-
]
6+
requirements = [
7+
"pandas>=0.23.0",
8+
"numpy>=1.14.0",
9+
"plotly>=2.3.0",
10+
"lmfit>=0.9.0",
11+
"arch>=4.4",
12+
"statsmodels>=0.9.0",
13+
"scipy>=1.0.1",
14+
"deprecation>=2.0",
15+
"entropyhub>=2.0",
16+
]
1517

1618
setuptools.setup(
1719
name="ewstools",
@@ -30,4 +32,4 @@
3032
"License :: OSI Approved :: MIT License",
3133
"Operating System :: OS Independent",
3234
],
33-
)
35+
)

0 commit comments

Comments
 (0)