-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- laid out pyproject and added pytest support - ignoring editable egg info - added build info for pyroject frontend
- Loading branch information
1 parent
54864e9
commit a062e03
Showing
14 changed files
with
40 additions
and
20 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
__pycache__ | ||
*.egg-info | ||
env | ||
|
||
.vscode | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "pyssp" | ||
version = "0.1" | ||
readme = "README.md" | ||
|
||
[tool.pytest.ini_options] | ||
pythonpath = "." | ||
addopts = [ | ||
"--import-mode=importlib", | ||
] |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import numpy as np | ||
import scipy as sp | ||
|
||
def fcov(x, p): | ||
''' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""""" | ||
|
||
|
||
import numpy as np | ||
from pyssp.levinson import glev, gtor | ||
|
||
|
||
def test_glev(): | ||
'''Example 5.3.1, Page 266''' | ||
r = [4, 2, 1] | ||
b = [9, 6, 12] | ||
|
||
res = glev(r, b) | ||
print(res) | ||
|
||
|
||
def test_gtor(): | ||
'''Based on example 5.2.6''' | ||
|
||
gamma = [1/2, 1/2, 1/2] | ||
epsilon = 2 * (3 / 4)**3 | ||
res = gtor(gamma, epsilon) | ||
true_results = np.array([2, -1, -1/4, 1/8]) | ||
print(res) |