Skip to content

Commit

Permalink
Fix order of data passed to RM-Tools
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecThomson committed Jan 16, 2024
1 parent 95659b7 commit 9b20431
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arrakis/rmsynth_oncuts.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,11 @@ def rmsynthoncut1d(
if noStokesI and stokes == "i":
continue
data.append(filtered_stokes_spectra.__getattribute__(stokes).data)
data.append(filtered_stokes_spectra.__getattribute__(stokes).rms)
bkg_data.append(filtered_stokes_spectra.__getattribute__(stokes).bkg)
for stokes in "iqu":
if noStokesI and stokes == "i":
continue
data.append(filtered_stokes_spectra.__getattribute__(stokes).rms)

# Run 1D RM-synthesis on the spectra
np.savetxt(f"{prefix}.dat", np.vstack(data).T, delimiter=" ")
Expand Down

0 comments on commit 9b20431

Please sign in to comment.