Skip to content

Commit 1b88301

Browse files
committed
remvoe module level docstring and fix ruff check issues
1 parent 5eb438a commit 1b88301

7 files changed

Lines changed: 19 additions & 51 deletions

File tree

src/xspline/__init__.py

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
# -*- coding: utf-8 -*-
2-
"""
3-
xspline
4-
~~~~~~~
5-
6-
xspline package
7-
"""
8-
91
from . import utils
10-
from .core import *
2+
from .core import (
3+
NDXSpline,
4+
XSpline,
5+
bspline_dfun,
6+
bspline_domain,
7+
bspline_fun,
8+
bspline_ifun,
9+
)
10+
11+
__all__ = [
12+
"utils",
13+
"bspline_domain",
14+
"bspline_fun",
15+
"bspline_dfun",
16+
"bspline_ifun",
17+
"XSpline",
18+
"NDXSpline",
19+
]

src/xspline/core.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
"""
3-
core
4-
~~~~
5-
6-
core module contains main functions and classes.
7-
"""
8-
91
import numpy as np
102

113
from . import utils

src/xspline/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# utility functions for the bsplinex class
21
import functools
32
import math
43

tests/test_core.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
"""
3-
test
4-
~~~~~~~~~
5-
6-
unit tests for xspline.core
7-
"""
8-
91
import numpy as np
102
import pytest
113

tests/test_ndxspline.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
"""
3-
test_xspline
4-
~~~~~~~~~~~~
5-
6-
Test XSpline class.
7-
"""
8-
91
import numpy as np
102
import pytest
113

tests/test_utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
"""
3-
test_utils
4-
~~~~~~~~~~
5-
6-
unit tests for xspline.utils
7-
"""
8-
91
import numpy as np
102
import pytest
113

tests/test_xspline.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
"""
3-
test_xspline
4-
~~~~~~~~~~~~
5-
6-
Test XSpline class.
7-
"""
8-
91
import numpy as np
102
import pytest
113

@@ -106,7 +98,7 @@ def test_ifun(knots, degree, order, idx, l_linear, r_linear, l_extra, r_extra):
10698
x = np.linspace(xs.knots[0] - 1.0, xs.knots[1], 101)
10799
else:
108100
x = np.linspace(xs.knots[-2], xs.knots[-1], 101)
109-
my_iy = xs.ifun(x[0], x, order, idx, l_extra=l_extra, r_extra=r_extra)
101+
_ = xs.ifun(x[0], x, order, idx, l_extra=l_extra, r_extra=r_extra)
110102

111103
domain = xs.domain(idx, l_extra=l_extra, r_extra=r_extra)
112104
lb = domain[0]

0 commit comments

Comments
 (0)