Skip to content

Deprecated usage of pylab.find results in AttributeError in XMDYNPhotonMatterAnalysis #247

@godot11

Description

@godot11

In Analysis.XMDYNPhotonMatterAnalysis.XMDYNPhotonMatterAnalysis.load_snapshot(), there is the following line:

xsnp['q'] = numpy.array([xsnp['ff'][pylab.find(xsnp['T']==x), 0] for x in xsnp['xyz']]).reshape(N,)

pylab.find seems no longer availble in the pylab namespace and this line results in an

AttributeError: module 'pylab' has no attribute 'find'

I couldn't find a reference to see when it was removed, but my environment corresponds to environment.yml.

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