Skip to content

Commit 0f63c40

Browse files
authored
Merge pull request #105 from agmoore4/docs-update
updating docs to reflect recent changes and disabling test affected by nltk
2 parents 06d6fb4 + 0b7d3a3 commit 0f63c40

File tree

12 files changed

+95
-15
lines changed

12 files changed

+95
-15
lines changed

docs/pages/installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ Alternatively, the package can be installed using github::
1818
NLTK data
1919
----------
2020

21-
Functions in the text package rely on the "punkt" dataset from the nltk package.
21+
Functions in the text package rely on the "punkt_tab" dataset from the nltk package.
2222
After proper installation of pvops, run the commands::
2323
2424
>>> import nltk
25-
>>> nltk.download('punkt')
25+
>>> nltk.download('punkt_tab')
2626
>>> nltk.download('stopwords')
2727

2828
Those operating under a proxy may have difficulty with this installation.

docs/pages/releasenotes.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ What's New
55

66
These are new features and improvements of note in each release.
77

8+
.. include:: releasenotes/0.5.2.rst
9+
10+
.. include:: releasenotes/0.5.1.rst
11+
12+
.. include:: releasenotes/0.5.0.rst
13+
14+
.. include:: releasenotes/0.4.0.rst
15+
816
.. include:: releasenotes/0.3.0.rst
917

1018
.. include:: releasenotes/0.2.0.rst

docs/pages/releasenotes/0.4.0.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
0.4.0 (October 25 2024)
2+
-----------------------
3+
4+
This release primarily addresses deprecations and future warnings related to dependencies, including a significant security vulnerability.
5+
6+
Documentation
7+
~~~~~~~~~~~~~
8+
9+
* Updated README and documentation to point to the JOSS publication.
10+
11+
Tutorials
12+
~~~~~~~~~~~~~~
13+
14+
* Miscellaneous fixes relevant to text2time, time, timeseries AIT module tutorials.
15+
16+
Other
17+
~~~~~~~~~~~~~~
18+
19+
* Now requiring nltk>=3.9.1 and switching punkt to punkt_tab. This addresses a security vulnerability in nltk.

docs/pages/releasenotes/0.5.0.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
0.5.0 (February 19 2025)
2+
------------------------
3+
4+
This release adds a new tutorial demonstrating survival analysis on PV assets.
5+
6+
Tutorials
7+
~~~~~~~~~~~~~~
8+
9+
* Added a new timeseries survival analysis tutorial demonstrating Kaplan-Meier estimators and Weibull distribution fits.
10+
11+
* Added a new example dataset to go along with the new tutorial.
12+
13+
Other
14+
~~~~~~~~~~~~~~
15+
16+
* Added scikit-survival as a new dependency. Used for Kaplan-Meier estimators in the new tutorial.

docs/pages/releasenotes/0.5.1.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
0.5.1 (February 19 2025)
2+
------------------------
3+
4+
This release addresses a deprecation preventing the documentation from building.
5+
6+
Other
7+
~~~~~~~~~~~~~~
8+
9+
* Updated artifact/upload-artifact in buildthedocs from v3 to v4

docs/pages/releasenotes/0.5.2.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
0.5.1 (February 19 2025)
2+
------------------------
3+
4+
This release updates the documentation to reflect changes starting at v0.4.0 and fixes dependency requirements.
5+
6+
Other
7+
~~~~~~~~~~~~~~
8+
9+
* Updated release notes to include changes starting at v0.4.0.
10+
11+
* Added new survival analysis notebook to the documentation.
12+
13+
* In v0.5.0, scikit-survival was added to requirements.txt but not setup.py. That has been resolved.
14+
15+
* Now requiring python<3.13 for tensorflow

docs/pages/tutorials.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ Check out the tutorials below!
1010
tutorials/tutorial_textmodule
1111

1212
.. nbgallery::
13-
:caption: Energy modelling tutorials:
13+
:caption: Timeseries tutorials:
1414

1515
tutorials/tutorial_timeseries
1616
tutorials/tutorial_AIT_timeseries
1717
tutorials/tutorial_timeseries_sim
18+
tutorials/tutorial_timeseries_survival_analysis
1819

1920
.. nbgallery::
2021
:caption: IV tutorials:
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "../../../tutorials/tutorial_timeseries_survival_analysis.ipynb"
3+
}

pvops/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# warnings.warn("")
99
pass
1010

11-
__version__ = '0.5.0'
11+
__version__ = '0.5.2'
1212

1313
__copyright__ = """Copyright 2023 National Technology & Engineering
1414
Solutions of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525

pvops/tests/test_text.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ def test_text_remove_nondate_nums():
1515
assert preprocess.text_remove_nondate_nums(example) == answer
1616

1717

18+
##### REMOVE ONCE NLTK STOPWORDS ISSUE IS RESOLVED
19+
import pytest
20+
@pytest.mark.skip(reason="no way of currently testing this")
21+
#####
1822
def test_text_remove_numbers_stopwords():
1923
example = r"This is a test example 10% #10 101 1-1-1 13-1010 10.1 123456789 123/12 executed on 2/4/2020"
2024
answer = r"This test example executed"

0 commit comments

Comments
 (0)