Skip to content

G2Script add_powder_histogram allways reads first bank when multi=False #372

Open

Description

@MaxPelly

When trying to import a single bank from a multi bank GSAS powder date file the add_powder_histogram function always imports the first bank regardless of what the databank parameter is set to, though uses the instrument parameters selected by the instbank parameter.

See the attached directory for a minimal example, you get bank 1 data but with the limits and instrument params of bank 2.

ExampleHRPD.zip

Activity

  1. MaxPelly commented on Oct 18, 2026

    @MaxPelly
    ContributorAuthor

    A possible solution in #373 with help from @dafda1

  2. MaxPelly commented on Oct 19, 2026

    @MaxPelly
    ContributorAuthor

    Issue introduced in 97101c8, prior to this commit Reader.Reinitialise() kept Reader.selections intact, after commit it resets them.

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