cherab / solps

Other
6 stars 5 forks source link

Fix SOLPSSimulation.electron_velocities_cylindrical setter #63

Closed vsnever closed 2 years ago

vsnever commented 3 years ago

There is a copy paste error in SOLPSSimulation.electron_velocities_cylindrical setter: https://github.com/cherab/solps/blob/a4e6b63b45654d7bf438a27eb47b92f544474b67/cherab/solps/solps_plasma.py#L310-L318 Instead of this:

velocities[:, 2] = -value[:, 1]

should be this:

velocities[2] = -value[1]

I think we need unit tests to track bugs like this. I'll start adding them.

vsnever commented 2 years ago

Fixed in PR #64.