Closed rlarv closed 1 year ago
The correct repository for this issue would have been openEMS. Not openEMS-Project which is only a "Meta" Project to connect all the dependencies, create documentation and simplify the build process... But I can see how that is hard to figure out from the outside ;) I will have a look what is going on here...
I don't know how to reproduce the problem. I'm not sure at all why this check for float is there in the first place. The calculation of the time-domain signals should always be possible? What tutorial or script did you run?
Here is a piece, which I'm currently playing with.
That is certainly very rough in many aspects, but perhaps helps to reveal what the check for "float" was meant to do.
I forgot, yes the actual simulation in time domain does work, the problem is in CalcPort() which is used for plotting.
okay I have found and understood it (I think) The check for float was meant to not calculate incoming voltages and currents in time-domain (TD) in case the reference impedance was frequency dependent (aka an array) But the MSL port was never tested with a scalar ref impedance and that it never even calculated any TD voltages.
I have fixed both issues... please give it a try and close if it is fixed for you...
Thank You very much, Your commit fixed the issue for me.
Hello,
I stumbled over this:
When invoking CalcPort as CalcPort( Sim_Path, f, ref_impedance = 50.0)
Using an integer 50 instead of the float 50.0 fixes the traceback.
The issue seems to be in ports.py somewhere here