Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure outputs for 1D RM synthesis are actually the dType that user requested #150

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

ErikOsinga
Copy link
Contributor

@ErikOsinga ErikOsinga commented Nov 28, 2024

Fixes the bug that whatever nBits was when the user called do_RMsynth_1D.run_rmsynth() the output would be returned as:

  • FDF as complex128
  • RMSF as complex128
  • phi_fdf as float<nBits> (this was the only thing correctly assigned)
  • phi_rmsf as float64

Now the outputs will be forced to:

    aDict["phiArr_radm2"] = phiArr_radm2.astype(dtFloat)
    aDict["phi2Arr_radm2"] = phi2Arr_radm2.astype(dtFloat)
    aDict["RMSFArr"] = RMSFArr.astype(dtComplex)
    aDict["freqArr_Hz"] = freqArr_Hz.astype(dtFloat)
    aDict["weightArr"] = weightArr.astype(dtFloat)
    aDict["dirtyFDF"] = dirtyFDF.astype(dtComplex)

@ErikOsinga
Copy link
Contributor Author

FYI: I also commented out some variables that were being set/calculated but not actually being used.

@Cameron-Van-Eck Cameron-Van-Eck merged commit 000139a into master Dec 5, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants