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

Bug in Psi4 Loading #66

Open
vaishakp opened this issue Dec 20, 2024 · 2 comments
Open

Bug in Psi4 Loading #66

vaishakp opened this issue Dec 20, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@vaishakp
Copy link
Collaborator

vaishakp commented Dec 20, 2024

I tried fixing code on Psi4 loading, and I failed. There are some things I don't understand, amongst other things like:

  1. Unordered time axis in Psi4 loading code) before interpolation. Throws interpolation error.
  2. Every mode now being a pycbc time series (Is this a new sxs thing?). This has some disadvantages.
    a). pycbc time series is sometimes shorter by one element compared to original data, probably associated with rounding off in delta_t. Here in comparison to WaveformModes.n_time and WaveformModes.time
    b). It is unnecessary and expensive to carry a time axis, delta_t and all attributes for every mode when they are identical across them.
  3. The number of columns in Psi4 RIT data is 6 not 3 as assumed
  4. Interpolation is more accurate in Amp and phase and they are provided in RIT data.
  5. When I originally authored the code in https://gitlab.com/vaishakp/waveformtools/-/blob/main/waveformtools/dataIO.py?ref_type=heads#L428
    I found that there are issues sometimes when delta_t is not rounded off, after using scipy.stat.mode to discern it, before constructing a new time axis for uniform sampling
@vaishakp vaishakp added the bug Something isn't working label Dec 20, 2024
@adivijaykumar
Copy link
Collaborator

adivijaykumar commented Dec 20, 2024

Every mode now being a pycbc time series

No this is not a sxs thing, rather a nrcatalogtools thing. However that should just be a problem with the get_mode method, and everything that works for WaveformModes in sxs (see this notebook) should ideally work. I think it is worth discussing whether the default return of get_mode should be a pycbc TimeSeries instance.

@adivijaykumar
Copy link
Collaborator

Hmm, I think there are other problems in https://github.com/gwnrtools/nr-catalog-tools/blob/master/nrcatalogtools/waveform.py#L83 which are different from the usual sxs behaviour, I'll try to take a look soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants