Skip to content

Commit

Permalink
[DATALAD RUNCMD] Do interactive fixing of some ambigous typos
Browse files Browse the repository at this point in the history
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w -i 3 -C 2",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
  • Loading branch information
yarikoptic committed Oct 4, 2024
1 parent 2a0b26c commit 6a7ccb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ It includes several local-low-rank based denoising methods (see the `documentati
4. Optimal Thresholding
5. Raw Singular Value Thresholding

A mathematical description of theses methods is available in the documentation.
A mathematical description of these methods is available in the documentation.



Expand Down
6 changes: 3 additions & 3 deletions src/patch_denoise/space_time/lowrank.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, patch_shape, patch_overlap, threshold_scale, **kwargs):
self.input_denoising_kwargs["threshold_scale"] = threshold_scale

def _patch_processing(self, patch, patch_idx=None, threshold_scale=1.0):
"""Process a pach with the MP-PCA method."""
"""Process a patch with the MP-PCA method."""
p_center, eig_vals, eig_vec, p_tmean = eig_analysis(patch)
maxidx = 0
meanvar = np.mean(eig_vals)
Expand Down Expand Up @@ -102,7 +102,7 @@ def denoise(
return super().denoise(input_data, mask, mask_threshold, progbar=progbar)

def _patch_processing(self, patch, patch_idx=None, var_apriori=None):
"""Process a pach with the Hybrid-PCA method."""
"""Process a patch with the Hybrid-PCA method."""
varest = np.mean(var_apriori.get_patch(patch_idx))
p_center, eig_vals, eig_vec, p_tmean = eig_analysis(patch)
maxidx = 0
Expand Down Expand Up @@ -168,7 +168,7 @@ def denoise(
return super().denoise(input_data, mask, mask_threshold, progbar=progbar)

def _patch_processing(self, patch, patch_idx=None, **kwargs):
"""Process a pach with the simple SVT method."""
"""Process a patch with the simple SVT method."""
# Centering for better precision in SVD
u_vec, s_values, v_vec, p_tmean = svd_analysis(patch)

Expand Down

0 comments on commit 6a7ccb7

Please sign in to comment.