NumPy Build & Bug Fixes
summary of changes
This is a patch to fix a few bugs that have popped up over the last few months, as well as a single function addition to output only the model for a TreeMesh.
Also we have dropped testing of discretize on Python 2.7 as it is officially in end-of-life stage (as of January 1st, 2020).
-
From #191:
Enables discretize to be installed on a system without NumPy present beforehand (for example when pip installing discretize).
It also contains a small update to the curvilinear mesh view that updates that function to be in line with the otherplotImage
functions. -
From #189:
Bugfix. Slicer failed ifxslice
was provided without ayslice
, because of wrong comparison.
Before, if you provided a homogenous model, it looked like this:
So the colour in the xy- and xz-plots is wrong. As soon as you scroll, the colour in the yz-plot will change to the wrong colour too.
With the bug-fix, they all get the right colour, and will remain correct if scrolling:
The bug only affects homogeneous fullspaces, which caused an issue with the range used bycolorbar()
. -
From #187:
We can output models through thewriteUBC
method of the TreeMesh. However, we might want, for symmetry withTensorMesh
, also have thewriteModelUBC
function, which will only write out the model.