Skip to content

Commit

Permalink
Minor naming update to Radial Power Spectrum.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeyer committed Nov 15, 2023
1 parent a2395d1 commit 48c8239
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nion/swift/DocumentController.py
Original file line number Diff line number Diff line change
Expand Up @@ -4936,7 +4936,7 @@ def invoke(self, context: Window.ActionContext) -> Window.ActionResult:

class PowerSpectrumAction(ProcessingAction):
action_id = "processing.power_spectrum"
action_name = _("Power Spectrum")
action_name = _("Radial Power Spectrum")

def execute(self, context: Window.ActionContext) -> Window.ActionResult:
context = typing.cast(DocumentController.ActionContext, context)
Expand Down
2 changes: 1 addition & 1 deletion nion/swift/model/DocumentModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2575,7 +2575,7 @@ def _get_builtin_processing_descriptions(cls) -> typing.Dict[str, typing.Any]:
"sources": [{"name": "src", "label": _("Source"), "regions": [line_profile_in_region]}]}
vs["radial-profile"] = {"title": _("Radial Profile"), "expression": "xd.radial_profile({src}.cropped_display_xdata)",
"sources": [{"name": "src", "label": _("Source"), "croppable": True, "requirements": [requirement_2d]}]}
vs["power-spectrum"] = {"title": _("Power Spectrum"), "expression": "xd.radial_profile(xd.power(xd.absolute(xd.fft({src}.cropped_display_xdata)), 2))",
vs["power-spectrum"] = {"title": _("Radial Power Spectrum"), "expression": "xd.radial_profile(xd.power(xd.absolute(xd.fft({src}.cropped_display_xdata)), 2))",
"sources": [{"name": "src", "label": _("Source"), "croppable": True, "requirements": [requirement_2d]}]}
vs["filter"] = {"title": _("Filter"), "expression": "xd.real(xd.ifft({src}.filtered_xdata))",
"sources": [{"name": "src", "label": _("Source"), "requirements": [requirement_2d]}]}
Expand Down
2 changes: 1 addition & 1 deletion nion/swift/resources/changes.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
{
"issues": ["https://github.com/nion-software/nionswift/issues/989"],
"summary": "Add a power spectrum menu item to Fourier processing sub-menu."
"summary": "Add a Radial Power Spectrum menu item to Fourier processing sub-menu."
},
{
"issues": ["https://github.com/nion-software/nionswift/issues/988"],
Expand Down

0 comments on commit 48c8239

Please sign in to comment.