Skip to content

Allow initialization of DO on instantiation #181

Description

@sbillinge

Problem

the workflow now is:

my_pattern = DiffractionObject(wavelength=1.54)
my_pattern.insert_scattering_oject(x_array, y_array, "tth", metadata={"something":"thing"})

Proposed solution

As an option we would like to support this:

my_pattern = DiffractionObject(x=x_array, y=y_array, dtype="tth", wavelength=1.54, metadata={"something":"thing"})

or something like that.

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