Commit 154da29e authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added 'RSR' as alias for RelativeSpectralResponse.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 16fef465
......@@ -3,7 +3,7 @@
"""Top-level package for pyrsr."""
from .version import __version__
from .rsr import RelativeSpectralResponse
from .rsr import RelativeSpectralResponse, RSR
__author__ = """Daniel Scheffler"""
__email__ = 'daniel.scheffler@gfz-potsdam.de'
......@@ -13,5 +13,6 @@ __all__ = [
'__author__',
'__email__',
'__version__',
'RelativeSpectralResponse'
'RelativeSpectralResponse',
'RSR'
]
......@@ -194,3 +194,6 @@ class RelativeSpectralResponse(object):
plt.xlabel('wavelength [%s]' % self.wvl_unit)
plt.ylabel('spectral response')
plt.legend(loc='upper right')
RSR = RelativeSpectralResponse # alias
......@@ -6,7 +6,7 @@
import unittest
from pyrsr.rsr import RelativeSpectralResponse
from pyrsr.rsr import RelativeSpectralResponse, RelativeSpectralResponse
class TestPyrsr(unittest.TestCase):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment