Skip to content

PD_PEAK_OVERALL: should drop _pd_peak_overall.diffractogram_id #192

@jamesrhester

Description

@jamesrhester

As a result of #79, a link to _pd_diffractogram.id was added to PD_PEAK_OVERALL as a key data name. This means that, in order to identify a method of peak extraction, both an identifier for the extraction method (PD_PEAK_OVERALL) and for the diffractogram it was used on should be provided, implying that it is possible for more than one extraction method to be used on a single diffractogram and that this extraction method has an independent existence.

The "independent existence" qualifier is important, as normally, an identifier such as _pd_peak_overall.id would be the single key data name in a Set category, to identify instances of some object, concept, or logical grouping of properties. This is not the case for pd_peak_overall with its two key datanames.

Three places refer to _pd_peak_overall.id : pd_refln, pd_amorphous, and pd_background.

What happens if we drop the link to _pd_diffractogram.id from PD_AMORPHOUS_PEAK? For pd_refln and pd_background, nothing, as they are associated with a diffractogram already. For pd_amorphous, there is a link to _pd_peak.id, and each _pd_peak.id is associated with a _pd_diffractogram.id, so we also have no consequences.

Therefore, _pd_peak_overall.diffractogram_id is unnecessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions