Skip to content

Conversation

@JLVarjo
Copy link
Contributor

@JLVarjo JLVarjo commented Apr 3, 2025

This PR addresses issue #112 by adding a helper function get_complex_array to JCAMP-DX parser.
This can be used to combine the separate real and imaginary data arrays of a JCAMP FID to single array of complex data type.
However, if you suggest that this operation should be performed by default when encountering data with separate real and imaginary parts, I'm happy to edit this PR to that direction.

In addition, universal dictionary parameters "sw", "car", "time", "freq" and "complex" are now populated to the best effort (also in the case of FIDs), and tests for these are added (no additional test cases required).

@kaustubhmote
Copy link
Collaborator

I think it would be better to have a complex data returned as is the case with most of the other formats. However, this change is backwards incompatible and will definitely break some existing code. I'll let @jjhelmus opine here.

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