tardis-sn / stardis

TARDIS stellar radiative transfer
https://tardis-sn.github.io/stardis/
11 stars 15 forks source link

Remove wavelength calls throughout the code and instead hold wavelengths in the RadiationField class (like frequencies) #180

Open jvshields opened 8 months ago

jvshields commented 8 months ago

At a couple different points throughout the code, the tracing frequencies are converted to wavelengths. There's no need for this process to happen multiple times because they never change throughout the code. Rather, during setup the class should just initialize with either wavelengths or frequencies and then compute the other and hold both.