Fusion-Power-Plant-Framework / bluemira

Bluemira is an integrated inter-disciplinary design tool for future fusion reactors. It incorporates several modules, some of which rely on other codes, to carry out a range of typical conceptual fusion reactor design activities.
https://bluemira.readthedocs.io/
GNU Lesser General Public License v2.1
67 stars 16 forks source link

Coordinates precision change edge case #3266

Closed je-cook closed 6 months ago

je-cook commented 6 months ago

Describe the bug

When using the dictionary input to coordinates it can change the precision of the resultant coordinates function. This was seen during some of the neutronics work. It is sidestepped by using an array input directly. Below there are two equivalent points (6.22, 6.21) that are changed in the conversion

image

I bet this is down to use of np.array instead of np.asarray

Steps to reproduce

Expected behaviour

Screenshots / Tracebacks

Environment (please complete the following information)

Additional context

je-cook commented 6 months ago

False positive