ndtatbristol / arim

A Python library for array imaging in ultrasonic testing.
MIT License
25 stars 13 forks source link

Refactor Points to accept any shape of grid of points #3

Closed nbud closed 8 years ago

nbud commented 8 years ago

Before Points accepted only 1D grid of points. Similarly to numpy array, a Points object can now have any dimension.

The storage layout changed: before points were stored as 3 numpy array (one for x, one for y, one for z). Now the points are stored in one array: x, y and z coordinates are respectively Points.coords[..., 0], Points.coords[..., 1], Points.coords[..., 2].

Motivations

Backward compatibility was broken. Sorry about that.

Tests were written. They pass.

Brief documentation was written and Sphinx compilation pass with no warning.

nbud commented 8 years ago

Ping @rltb