|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# Copyright 2019-2025 The LumiSpy developers |
| 3 | +# |
| 4 | +# This file is part of LumiSpy. |
| 5 | +# |
| 6 | +# LumiSpy is free software: you can redistribute it and/or modify |
| 7 | +# it under the terms of the GNU General Public License as published by |
| 8 | +# the Free Software Foundation, either version 3 of the license, or |
| 9 | +# (at your option) any later version. |
| 10 | +# |
| 11 | +# LumiSpy is distributed in the hope that it will be useful, |
| 12 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | +# GNU General Public License for more details. |
| 15 | +# |
| 16 | +# You should have received a copy of the GNU General Public License |
| 17 | +# along with LumiSpy. If not, see <https://www.gnu.org/licenses/#GPL>. |
| 18 | + |
| 19 | +""" |
| 20 | +Lazy signal classes for cathodoluminescence spectral data |
| 21 | +--------------------------------------------------------- |
| 22 | +""" |
| 23 | + |
| 24 | +from hyperspy.docstrings.signal import LAZYSIGNAL_DOC |
| 25 | +from hyperspy.signals import LazySignal1D |
| 26 | + |
| 27 | +from lumispy.signals import CLSpectrum, CLSEMSpectrum, CLSTEMSpectrum |
| 28 | + |
| 29 | + |
| 30 | +class LazyCLSpectrum(LazySignal1D, CLSpectrum): |
| 31 | + """**General lazy 1D cathodoluminescence signal class.**""" |
| 32 | + |
| 33 | + __doc__ += LAZYSIGNAL_DOC.replace("__BASECLASS__", "CLSpectrum") |
| 34 | + |
| 35 | + |
| 36 | +class LazyCLSEMSpectrum(LazySignal1D, CLSEMSpectrum): |
| 37 | + """**Lazy 1D scanning electron microscopy cathodoluminescence signal class.**""" |
| 38 | + |
| 39 | + __doc__ += LAZYSIGNAL_DOC.replace("__BASECLASS__", "CLSEMSpectrum") |
| 40 | + |
| 41 | + |
| 42 | +class LazyCLSTEMSpectrum(LazySignal1D, CLSTEMSpectrum): |
| 43 | + """**Lazy 1D scanning transmission electron microscopy cathodoluminescence signal class.**""" |
| 44 | + |
| 45 | + __doc__ += LAZYSIGNAL_DOC.replace("__BASECLASS__", "CLSTEMSpectrum") |
| 46 | + |
0 commit comments