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

small updates for XPS peak fitting #301

Merged
merged 10 commits into from
Nov 22, 2024
Merged

small updates for XPS peak fitting #301

merged 10 commits into from
Nov 22, 2024

Conversation

lukaspie
Copy link
Collaborator

@lukaspie lukaspie commented Nov 21, 2024

This will then also have to be changed in nexusformat#1424

Comment on lines +461 to +474
<doc>
Human-readable description of the background fit function.

.. csv-table:: Examples for background descriptions
:header: "Background Type", "Description"

"Linear", "Linear background, i.e., a simple straight line from the minimal to the maximal abscissa value."
"Shirley", "Shirley background. In the Shirley background, the background intensity at any given binding energy is proportional to the intensity of the total peak area above the background in the lower binding energy peak range (i.e., the background goes up in proportion to the total number of photoelectrons below its binding energy position)."
"Tougaard", "Tougaard background (or Tougaard universal cross-section approach) which is a methodology for integrating the intensity of the background at a given binding energy from the spectral intensities to higher kinetic energies."
"Step Down/Step Up", "Background function for fitting a complementary error function to an edge, used for fitting a step in the data."

In case none of these examples apply, the functional form of the background should be given by the `formula`
field.
</doc>

Choose a reason for hiding this comment

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

All the descriptions have been merged together. Wouldn't it be nice to keep the enemerations along with he merged description?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The problem with the enum is that there can be too many different background types, so I relaxed it.

Comment on lines +322 to +327
relative_atomic_concentration(NX_FLOAT):
exists: optional
unit: NX_ANY
doc: |
Atomic concentration of the species defined by this peak. This should be a value
between 0 and 1.

Choose a reason for hiding this comment

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

This is added but removed from nxdl.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is just placed at a different position (within NXpeak), also in the NXDL.

@lukaspie lukaspie merged commit a5c0012 into fairmat Nov 22, 2024
7 checks passed
@lukaspie lukaspie deleted the small-xps-changes branch November 22, 2024 13:19
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.

3 participants