attitude.test package

Submodules

attitude.test.io module

Methods for dealing with saved test data

attitude.test.io.load_test_plane(name)[source]

Load numpy array(s) defining plane data from text file in test/fixtures directory

attitude.test.io.save_test_plane(name, *arrays)[source]

Saves numpy array(s) defining plane data to text file in test/fixtures directory. This can be used to add data for inclusion in the testing framework for this module.

Multiple arrays (for grouping, etc.) will be saved to the same file.

Module contents

attitude.test.make_plane(x, y, coefficients)[source]

z = a x + b y + c scatter: percentage scatter (standard deviation) in final values (0 for exact plane)

attitude.test.random_plane(n=1000, limit=100)[source]
attitude.test.randomize(plane, scatter=0.05)[source]
attitude.test.scattered_plane(*args, **kwargs)[source]
attitude.test.spherical_plane(r, theta, coefficients=[1, 1])[source]
attitude.test.strike_dip_plane(strike, dip)[source]
attitude.test.test_coordinate_transforms(n_points=1000)[source]
attitude.test.test_random_plane(n_points=1000)[source]

Test that we can fit a simple plane in cartesian space