Skip to content

Change: use load_data in ProfileParser and PDFParser to parse data files #194

Closed

Description

@cadenmyers13

Problem

The current way PDFParser and ProfileParser parse datafiles is archaic.

Proposed solution

Use diffpy.utils new and beautiful load_data function that parses the data more elegantly. Thanks Andrew for the lovely function!

Activity

  1. benfrandsen commented on Aug 12, 2026

    @benfrandsen

    Quick comment on this: In earlier versions, the PDFParser could recognize the standard comments prepended to data files produced on the NOMAD instrument at SNS, such as:

    # 5000
    # file: PDF/NOM_9999_MnO_5K_ftfrgr.gr
    # created: Thu Sep 29 18:48:08 2016
    # Comment: neutron, Qmax=31.414, Qdamp=0.017659, Qbroad= 0.0191822
    #

    The parser would recognize that the scattering type is neutrons and automatically pull out values for Qmax, Qdamp, and Qbroad. In the current version, it does not automatically pull out any of this information, requiring the user to provide it. If possible, please make sure the updated version can still properly parse NOMAD data files.

  2. cadenmyers13 commented on Aug 12, 2026

    @cadenmyers13
    ContributorAuthor

    @benfrandsen Thank you for catching this! I will get this fixed asap.

  3. cadenmyers13 commented on Aug 12, 2026

    @cadenmyers13
    ContributorAuthor

    closing as complete

  4. sbillinge commented on Aug 13, 2026

    @sbillinge
    Contributor

    I think this is not complete but now resides in issue #206

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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