Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docstring fixes and cleanup #107

Merged
merged 2 commits into from
Jul 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nmrglue/process/proc_autophase.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _ps_acme_score(ph, data):

Parameters
----------
pd : tuple
ph : tuple
Current p0 and p1 values
data : ndarray
Array of NMR data.
Expand Down Expand Up @@ -108,7 +108,7 @@ def _ps_peak_minima_score(ph, data):

Parameters
----------
pd : tuple
ph : tuple
Current p0 and p1 values
data : ndarray
Array of NMR data.
Expand Down
10 changes: 4 additions & 6 deletions nmrglue/process/proc_lp.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def lp(data, pred=1, slice=slice(None), order=8, mode="f", append="after",
mode : {'f', 'b', 'fb' or 'bf'}
Mode to generate LP filter. 'f' for forward,'b' for backward, fb for
'forward-backward and 'bf' for backward-forward.
extend : {'before', 'after'}
Location to extend the data, either 'before' the current data, or
append : {'before', 'after'}
Location to append the data, either 'before' the current data, or
'after' the existing data. This is independent of the `mode` parameter.
bad_roots : {'incr', 'decr', None, 'auto'}
Type of roots which to consider bad and to stabilize. Option are those
Expand Down Expand Up @@ -182,8 +182,8 @@ def lp_1d(trace, pred=1, slice=slice(None), order=8, mode="f", append="after",
mode : {'f', 'b', 'fb' or 'bf'}
Mode to generate LP filter. 'f' for forward,'b' for backward, fb for
'forward-backward and 'bf' for backward-forward.
extend : {'before', 'after'}
Location to extend the data, either 'before' the current data, or
append : {'before', 'after'}
Location to append the data, either 'before' the current data, or
'after' the existing data. This is independent of the `mode` parameter.
bad_roots : {'incr', 'decr', None, 'auto'}
Type of roots which to consider bad and to stabilize. Option are those
Expand Down Expand Up @@ -833,8 +833,6 @@ def find_lpc_qr(D, d):
"""
Find linear prediction filter using QR decomposition.
"""
L = D.shape[0]
m = D.shape[1]
q, r = scipy.linalg.qr(D)
q, r = np.mat(q), np.mat(r)

Expand Down