Skip to content

Commit

Permalink
Merge pull request #563 from jinningwang/rtd
Browse files Browse the repository at this point in the history
Follow RTD deprecation
  • Loading branch information
cuihantao authored Aug 19, 2024
2 parents 90cce84 + 1d14437 commit 8d8ae0c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions andes/variables/dae.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,7 @@ def set_t(self, t):
"""
Helper function for setting time in-place.
"""

self.t.itemset(t)
self.t[...] = np.array(t, dtype=float)

def get_size(self, name):
"""
Expand Down
5 changes: 5 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
import os
import andes
import shutil

Expand Down Expand Up @@ -131,6 +132,10 @@
"doc_path": "docs/source",
}

# Tell Jinja2 templates the build is running on Read the Docs
if os.environ.get("READTHEDOCS", "") == "True":
html_context["READTHEDOCS"] = True

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
Expand Down
2 changes: 2 additions & 0 deletions docs/source/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ v1.9 Notes

v1.9.3 (2024-04-XX)
-------------------
- In the `dae`` module, change `self.t.itemset` to array assignment to ensure compatibility with NumPy 2.0.
- Follow RTD's deprecation of Sphinx context injection at build time
- In symbolic processor, most variables are assumed to be real, except some
services that are specified as complex. This will allow generating simplified
expressions.
Expand Down

0 comments on commit 8d8ae0c

Please sign in to comment.