Skip to content

Commit 82f083e

Browse files
committed
Rename 'logp1' to 'log10_z_plus_n' for consistency in function naming across the codebase
1 parent 51ad962 commit 82f083e

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

datalab/gui/actionhandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ def create_first_actions(self):
12191219

12201220
# MARK: OPERATION
12211221
with self.new_category(ActionCategory.OPERATION):
1222-
self.action_for("logp1")
1222+
self.action_for("log10_z_plus_n")
12231223
self.action_for("flatfield", separator=True)
12241224

12251225
with self.new_menu(_("Flip or rotation"), icon_name="rotate_right.svg"):

datalab/gui/processor/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def register_operations(self) -> None:
303303
sipi.log10, _("Logarithm (base 10)"), icon_name="log10.svg"
304304
)
305305
self.register_1_to_1(
306-
sipi.logp1, "Log10(z+n)", paramclass=sigima.params.LogP1Param
306+
sipi.log10_z_plus_n, "Log10(z+n)", paramclass=sigima.params.LogP1Param
307307
)
308308
self.register_2_to_1(
309309
sipi.flatfield,

datalab/tests/scenarios/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def run_image_computations(
416416
panel.processor.run_feature(func_name)
417417

418418
param = sigima.params.LogP1Param.create(n=1)
419-
panel.processor.run_feature("logp1", param)
419+
panel.processor.run_feature("log10_z_plus_n", param)
420420

421421
panel.processor.run_feature("rotate90")
422422
panel.processor.run_feature("rotate270")

doc/locale/fr/LC_MESSAGES/features/validation/status.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ msgstr ""
14981498
msgid "`test_image_log10 <https://github.com/DataLab-Platform/Sigima/blob/v1.0.0/sigima/tests/image/operation_unit_test.py#L471>`_"
14991499
msgstr ""
15001500

1501-
msgid ":py:func:`logp1 <sigima.proc.image.logp1>`"
1501+
msgid ":py:func:`log10_z_plus_n <sigima.proc.image.log10_z_plus_n>`"
15021502
msgstr ""
15031503

15041504
msgid "Compute log10(z+n) with :py:data:`numpy.log10`"

doc/validation_status_image.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
:py:func:`laplace <sigima.proc.image.laplace>`,Compute Laplace filter,`test_laplace <https://github.com/DataLab-Platform/Sigima/blob/v1.0.0/sigima/tests/image/edges_unit_test.py#L134>`_
6464
:py:func:`line_profile <sigima.proc.image.line_profile>`,Compute horizontal or vertical profile,`test_line_profile <https://github.com/DataLab-Platform/Sigima/blob/v1.0.0/sigima/tests/image/profile_unit_test.py#L19>`_
6565
:py:func:`log10 <sigima.proc.image.log10>`,Compute log10 with :py:data:`numpy.log10`,`test_image_log10 <https://github.com/DataLab-Platform/Sigima/blob/v1.0.0/sigima/tests/image/operation_unit_test.py#L471>`_
66-
:py:func:`logp1 <sigima.proc.image.logp1>`,Compute log10(z+n) with :py:data:`numpy.log10`,`test_image_logp1 <https://github.com/DataLab-Platform/Sigima/blob/v1.0.0/sigima/tests/image/operation_unit_test.py#L483>`_
66+
:py:func:`log10_z_plus_n <sigima.proc.image.log10_z_plus_n>`,Compute log10(z+n) with :py:data:`numpy.log10`,`test_image_logp1 <https://github.com/DataLab-Platform/Sigima/blob/v1.0.0/sigima/tests/image/operation_unit_test.py#L483>`_
6767
:py:func:`magnitude_spectrum <sigima.proc.image.magnitude_spectrum>`,Compute magnitude spectrum,`test_image_magnitude_spectrum <https://github.com/DataLab-Platform/Sigima/blob/v1.0.0/sigima/tests/image/fft2d_unit_test.py#L142>`_
6868
:py:func:`moving_average <sigima.proc.image.moving_average>`,Compute moving average,`test_image_moving_average <https://github.com/DataLab-Platform/Sigima/blob/v1.0.0/sigima/tests/image/filtering_unit_test.py#L37>`_
6969
:py:func:`moving_median <sigima.proc.image.moving_median>`,Compute moving median,`test_image_moving_median <https://github.com/DataLab-Platform/Sigima/blob/v1.0.0/sigima/tests/image/filtering_unit_test.py#L49>`_

0 commit comments

Comments
 (0)