experimental_spectrum
?
or perhaps experimental_spectrum would not be needed at all (other than legacy perhaps)
That could be an Issue too, btw!
Did you also see this: https://radis.readthedocs.io/en/latest/spectrum/spectrum.html#initialize-from-text-file-or-arrays ?
apply_slit(..norm_by="max")
method. When it does so, the code tries to process a string "I/I0"
as a unit. I have been looking all over the pint documentation but I still haven't been able to identify how this worked. Any leads on how this worked would be appreciated!
or perhaps experimental_spectrum would not be needed at all (other than legacy perhaps)
That could be an Issue too, btw!
Did you also see this: https://radis.readthedocs.io/en/latest/spectrum/spectrum.html#initialize-from-text-file-or-arrays ?
Not yet, looks useful!
I/IO
, -ln(I/IO)
and eps
in conjunction with Astropy? I have been at it for quite some time and it appears simply changing all occurrences of these strings to 1
won't resolve the issue. I have been forced to add a lot of if-else blocks in a lot of places to handle issues arising from the way astropy parses strings. For instance, while we could simply multiply two units represented as strings in pint by concatenating them with a *
in between, in Astropy we need to first check whether both the strings are pure units or is one of them 1
(like in our case, following which we need to ensure that this string appears before the other string, nm
in this case).
test_slit()
locally on my laptop. The traceback seems to be hinting at something going wrong with matplotlib but I still not clear about it.