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

Small bug in calibration.py to load the reference frequency #30

Open
kazuakiyama opened this issue May 7, 2024 · 0 comments
Open

Small bug in calibration.py to load the reference frequency #30

kazuakiyama opened this issue May 7, 2024 · 0 comments

Comments

@kazuakiyama
Copy link

I was trying calibration.py to calibrate data in alist files. I noticed that when reference frequency doesn't have a decimal point in the input alist file, it will be loaded as an array of intergers with pandas, and will cause an error in a later line below.

  1. freq_orig /= (1.0e3)

I would suggest a minor fix to always load reference frequency as a float array, for instance.

  1. freq_orig = np.array(df.ref_freq, dtype=np.float64)
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

No branches or pull requests

1 participant