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

[ENH] Add atomic scattering factors #174

Merged
merged 5 commits into from
Aug 17, 2024
Merged

Conversation

lmmentel
Copy link
Owner

Add new model ScatteringFactor with atomic scattering factors from this data source suggested by @goodwin2208 in #173.

Elements now have an additional property named scattering_factors that returns a list of ScatteringFactor instances for that element. For example:

>>> from mendeleev import Fe
>>> Fe.scattering_factors
[Z=26 E=10.0 f1=-9999.0 f2=1.37852,
 Z=26 E=10.1617 f1=-9999.0 f2=1.42961,
 Z=26 E=10.3261 f1=-9999.0 f2=1.48259,
 Z=26 E=10.4931 f1=-9999.0 f2=1.53754,
 Z=26 E=10.6628 f1=-9999.0 f2=1.59453,
 Z=26 E=10.8353 f1=-9999.0 f2=1.65362,
 Z=26 E=11.0106 f1=-9999.0 f2=1.71491,
 Z=26 E=11.1886 f1=-9999.0 f2=1.77847,
 Z=26 E=11.3696 f1=-9999.0 f2=1.84438,
...

ScatteringFactor has following attributes:

  • atomic_number
  • energy
  • f1
  • f2

closes #173

@lmmentel lmmentel added enhancement New feature or request data Data update labels Aug 15, 2024
@lmmentel lmmentel self-assigned this Aug 15, 2024
@lmmentel lmmentel mentioned this pull request Aug 17, 2024
@lmmentel lmmentel merged commit dfe91eb into master Aug 17, 2024
20 checks passed
@lmmentel lmmentel deleted the enh/atomic-scattering-factors branch August 17, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data Data update enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optical properties
1 participant