Skip to content

BUG: evaluate.SF2d fails for fields #147

@kay-ro

Description

@kay-ro

Description:

without specifying the field in evaluate.SF2d, the evaluation will run through but return incorrect results.

Code for reproduction:

import amep
path="/home/dormann/Documents/git_amep/examples/data/continuum.h5amep"
ctraj = amep.load.traj(path)

fsf2d = amep.evaluate.SF2d(
    ctraj, nav = 1, skip = 0.9
)
fig, axs = amep.plot.new()
mp = amep.plot.field(
    axs, fsf2d.avg, fsf2d.qx, fsf2d.qy,
    cscale="log", vmin=1e0
)

fsf2d = amep.evaluate.SF2d(
    ctraj, nav = 1, skip = 0.9,
    ftype="c"
)
fig, axs = amep.plot.new()
mp = amep.plot.field(
    axs, fsf2d.avg, fsf2d.qx, fsf2d.qy,
    cscale="log", vmin=1e0
)

Error message:

Image

Python and AMEP versions:

amep 1.1.1

Additional information:

No response

How did you install AMEP?

pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions