Skip to content

Commit

Permalink
add changelog entry and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaehne committed Jan 29, 2024
1 parent cb0c281 commit d5240e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/dev_guide/writing_extensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ the signal subclass with ``Electron Energy Loss Spectroscopy`` signal type.
It is good practice to choose a very explicit ``signal_type`` while leaving
acronyms for ``signal_type_aliases``.
Additionally, the optional key ``hidden: True`` can be defined if a signal should

Check warning on line 191 in doc/dev_guide/writing_extensions.rst

View workflow job for this annotation

GitHub Actions / Build / Check links and make PR comments

py:meth reference target not found: api.print_known_signal_types
be registered with HyperSpy, but not listed by :meth:`~.api.print_known_signal_types`.
This option can be used if a signal subclass is needed for certain functionalities,
such as casting to a different signal subclass, but should usually not be set
directly by the user.
Creating new HyperSpy model components
--------------------------------------
Expand Down
1 change: 1 addition & 0 deletions upcoming_changes/3302.enhancements.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow setting optional ``hidden`` key in definition of signals extending hyperspy, which prevents them from being shown by ``print_known_signal_types()``.

0 comments on commit d5240e9

Please sign in to comment.