Skip to content

Commit

Permalink
Update deprecated linalg.linalg.svd to linalg.svd
Browse files Browse the repository at this point in the history
* Update decprecated linalg.linalg.svd to linalg.svd

* add sphinx conf.py to readthedocs.yaml

* fix filepath
  • Loading branch information
fiona-naughton authored Feb 19, 2025
1 parent 02ee498 commit 7ed81d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helanal/helanal.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def vector_of_best_fit(coordinates):
"""
centered = coordinates - coordinates.mean(axis=0)
Mt_M = np.matmul(centered.T, centered)
u, s, vh = np.linalg.linalg.svd(Mt_M)
u, s, vh = np.linalg.svd(Mt_M)
vector = vh[0]

# does vector face first local helix origin?
Expand Down
3 changes: 3 additions & 0 deletions readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

version: 2

sphinx:
configuration: docs/source/conf.py

build:
os: ubuntu-22.04
tools:
Expand Down

0 comments on commit 7ed81d2

Please sign in to comment.