Closed yunjunz closed 2 years ago
The cause of the issue seems to be the behavior change of the numpy.loadtxt(max_rows)
, which used to not count the lines of comments, and now it does count. The PR above use a more relaxed call of the max num of rows, instead of the exact num of rows, to be robust against both old and new numpy behaviors.
With the latest release of
numpy 1.22
, pysolid now has areshape
error for thepysolid.grid
module as below:If I pin the numpy version to
<1.22
, there is no issue. Thus, this seems to be anf2py
module behavior change introduced innumpy 1.22
release.