Skip to content

Handle negative phase0 in LCModel .COORD files#185

Open
xaker00 wants to merge 1 commit into
openmrslab:masterfrom
xaker00:lcmodel_coord_neg_phase
Open

Handle negative phase0 in LCModel .COORD files#185
xaker00 wants to merge 1 commit into
openmrslab:masterfrom
xaker00:lcmodel_coord_neg_phase

Conversation

@xaker00

@xaker00 xaker00 commented Oct 6, 2025

Copy link
Copy Markdown

Negative three-digit phase0 values would crash the parser. Now fixed with regex.

Updated tests and sorted imports using ruff in modified files.

Negative three digit phase0 values would crash the parser. Now fixed with regex.
FWHM = 0.297 ppm S/N = 24
Data shift =-0.019 ppm
Ph: 36 deg 0.3 deg/ppm
Ph:-136 deg 0.3 deg/ppm

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This .COORD file is only used in one test. I modified it to include the edge case that was crashing previously.

@xaker00 xaker00 marked this pull request as ready for review October 6, 2025 17:36
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.

1 participant