Skip to content

In example 05 replace df["detector (E)" by df["detector (H)" generates exception RuntimeWarning #80

Open
@GenB31415

Description

@GenB31415

Hello to everybody. My question: I tried to execute your example "05. Lenses and analysing lensing actions" but with the use fdtd.dB_map_2D(df["detector (H)"]) in place of fdtd.dB_map_2D(df["detector (E)"]). The output shows
RuntimeWarning: invalid value encountered in scalar divide
a = 10 * log10([[y / minVal for y in x] for x in a]).
How to overcome this to see the structure of the magnetic field H? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions