Skip to content

array / data type compatibility issues after env upgrade #33

Description

@ambarb

res = np.array([np.array([theta]), np.array(ds), np.array(I_list)])[0]

This line above produces:

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (3,) + inhomogeneous part.

When trying to run the CHX profile function E_scan() regardless of the the inputs to this scan (a list of energies).

Locally testing shows you can make the following changes to just this one line, and things will work:

res = list(np.array([theta]), np.array(ds), np.array(I_list))[0]

hot fix solved by making this change to a temporary version pasted into the namesapce and overwriting xf.get_Bragg()

Scan goes (profile function E_scan()) and the resulting plot looks qualitatively correct.

Activity

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