Skip to content

Validate X-ray scattering density - #155

Open
swf1996120 wants to merge 1 commit into
python-periodictable:masterfrom
swf1996120:validate-xray-density
Open

swf1996120 wants to merge 1 commit into
python-periodictable:masterfrom
swf1996120:validate-xray-density

Conversation

@swf1996120

Copy link
Copy Markdown

Chemical repository testing study: validate X-ray scattering density

This pull request addresses #154.

xray_sld() now rejects negative and non-finite material densities before computing scattering length density. Zero density remains valid for the documented vacuum case, and normal positive-density calculations are unchanged.

Focused tests cover negative and NaN density plus the zero-density control.

Testing disclosure: this patch was developed as part of an LLM-assisted chemical repository testing study. The candidate cases were generated with LLM assistance, then reproduced locally, minimized, and fixed with a focused validation patch and tests.

This branch has not been deployed

No deployments
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