Skip to content

Commit

Permalink
Merge pull request #443 from ThomasMBury/development
Browse files Browse the repository at this point in the history
Update requirements
  • Loading branch information
ThomasMBury authored May 19, 2024
2 parents c98b5e7 + 66f6fb0 commit 9f5d6fb
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 45 deletions.
56 changes: 24 additions & 32 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,17 @@

import os
import sys
sys.path.insert(0, os.path.abspath('../../ewstools/'))

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


# -- Project information -----------------------------------------------------
project = 'ewstools'
copyright = '2022, Thomas M Bury'
author = 'Thomas M Bury'
project = "ewstools"
copyright = "2022, Thomas M Bury"
author = "Thomas M Bury"

# Semantic version number
version = '2.0.1'


version = "2.1.1"

# -- General configuration ---------------------------------------------------

Expand All @@ -38,30 +36,27 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.napoleon'
]
extensions = ["sphinx.ext.autodoc", "sphinx.ext.napoleon"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = ["_templates"]

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
source_suffix = ['.rst', '.md']
source_suffix = [".rst", ".md"]
# source_suffix = {'.rst': 'restructuredtext'}


# The master toctree document.
master_doc = 'index'
master_doc = "index"

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

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


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

# Output file base name for HTML help builder.
htmlhelp_basename = 'ewstoolsdoc'
htmlhelp_basename = "ewstoolsdoc"


# -- Options for LaTeX output ------------------------------------------------
Expand All @@ -114,15 +109,12 @@
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',

# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',

# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',

# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
Expand All @@ -132,19 +124,15 @@
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'ewstools.tex', 'ewstools Documentation',
'Thomas M Bury', 'manual'),
(master_doc, "ewstools.tex", "ewstools Documentation", "Thomas M Bury", "manual"),
]


# -- Options for manual page output ------------------------------------------

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'ewstools', 'ewstools Documentation',
[author], 1)
]
man_pages = [(master_doc, "ewstools", "ewstools Documentation", [author], 1)]


# -- Options for Texinfo output ----------------------------------------------
Expand All @@ -153,9 +141,15 @@
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'ewstools', 'ewstools Documentation',
author, 'ewstools', 'One line description of project.',
'Miscellaneous'),
(
master_doc,
"ewstools",
"ewstools Documentation",
author,
"ewstools",
"One line description of project.",
"Miscellaneous",
),
]


Expand All @@ -174,6 +168,4 @@
# epub_uid = ''

# A list of files that should not be packed into the epub file.
epub_exclude_files = ['search.html']


epub_exclude_files = ["search.html"]
4 changes: 2 additions & 2 deletions ewstools/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,10 @@ def compute_ktau(self, tmin="earliest", tmax="latest"):

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

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

# Get cropped data
df_ews = self.ews[(self.ews.index >= tmin) & (self.ews.index <= tmax)].copy()
Expand Down
3 changes: 2 additions & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ plotly==5.9.0
lmfit==1.0.3
statsmodels==0.13.2
scipy==1.8.1
deprecation==2.1.0
EntropyHub==2.0
tensorflow==2.11.1
deprecation==2.1.0
22 changes: 12 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
with open("README.md", "r") as fh:
long_description = fh.read()

requirements = ['pandas>=0.23.0',
'numpy>=1.14.0',
'plotly>=2.3.0',
'lmfit>=0.9.0',
'arch>=4.4',
'statsmodels>=0.9.0',
'scipy>=1.0.1',
'deprecation>=2.0',
]
requirements = [
"pandas>=0.23.0",
"numpy>=1.14.0",
"plotly>=2.3.0",
"lmfit>=0.9.0",
"arch>=4.4",
"statsmodels>=0.9.0",
"scipy>=1.0.1",
"deprecation>=2.0",
"entropyhub>=2.0",
]

setuptools.setup(
name="ewstools",
Expand All @@ -30,4 +32,4 @@
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)
)

0 comments on commit 9f5d6fb

Please sign in to comment.