Skip to content

Commit c9e556d

Browse files
authored
Merge pull request #41 from AFM-SPM/ns-rse/numpydoc-validation
2 parents 84bfe52 + c0e4ca9 commit c9e556d

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

.git-blame-ignore-revs

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
# ns-rse/numpydoc-validation ibw/jpk/spm : linting docstrings
2+
57a3de501051d9710bc2ac196ea695ee4d9118f0
3+
14
# ns-rse/39-numpydoc-validation : linting docstrings
25
09c44841ba185de7ed4729fbe6b1d0f58caeb4bc

topofileformats/ibw.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ def load_ibw(file_path: Path | str, channel: str) -> tuple[np.ndarray, float]:
4444
4545
Parameters
4646
----------
47-
file_path: Path | str
47+
file_path : Path | str
4848
Path to the .ibw file.
49-
channel: str
49+
channel : str
5050
The channel to extract from the .ibw file.
5151
5252
Returns

topofileformats/jpk.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ def load_jpk(file_path: Path | str, channel: str) -> tuple[np.ndarray, float]:
4242
4343
Parameters
4444
----------
45-
file_path: Path | str
45+
file_path : Path | str
4646
Path to the .jpk file.
47-
channel: str
47+
channel : str
4848
The channel to extract from the .jpk file.
4949
5050
Returns

topofileformats/spm.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@
1212

1313

1414
def spm_pixel_to_nm_scaling(filename: str, channel_data: pySPM.SPM.SPM_image) -> float:
15-
"""Extract pixel to nm scaling from the SPM image metadata.
15+
"""
16+
Extract pixel to nm scaling from the SPM image metadata.
1617
1718
Parameters
1819
----------
19-
channel_data: pySPM.SPM.SPM_image
20+
filename : str
21+
File name.
22+
channel_data : pySPM.SPM.SPM_image
2023
Channel data from PySPM.
2124
2225
Returns
@@ -42,7 +45,8 @@ def spm_pixel_to_nm_scaling(filename: str, channel_data: pySPM.SPM.SPM_image) ->
4245

4346

4447
def load_spm(file_path: Path | str, channel: str) -> tuple:
45-
"""Extract image and pixel to nm scaling from the Bruker .spm file.
48+
"""
49+
Extract image and pixel to nm scaling from the Bruker .spm file.
4650
4751
Parameters
4852
----------
@@ -51,7 +55,6 @@ def load_spm(file_path: Path | str, channel: str) -> tuple:
5155
channel : str
5256
Channel name to extract from the .spm file.
5357
54-
5558
Returns
5659
-------
5760
tuple(np.ndarray, float)

0 commit comments

Comments
 (0)