diff options
-rw-r--r-- | sambal/sambal.py (renamed from src/sambal/sambal.py) | 5 | ||||
-rw-r--r-- | setup.cfg | 7 | ||||
-rw-r--r-- | src/sambal/__init__.py | 0 |
3 files changed, 5 insertions, 7 deletions
diff --git a/src/sambal/sambal.py b/sambal/sambal.py index c42ea44..f4d64f4 100644 --- a/src/sambal/sambal.py +++ b/sambal/sambal.py @@ -27,6 +27,7 @@ def random_on_sphere(dim): def rotate_from_nth_canonical(x, axis): """Rotate vector from around the nth canonical axis to the given axis. + """ xn = x[-1] axisn = axis[-1] @@ -41,7 +42,9 @@ def rotate_from_nth_canonical(x, axis): def random_on_disk(axis, planar_angle): """Return a random vector uniformly distributed on the periphery of a -disk.""" +disk. + + """ dim = axis.size x = empty(dim) x[:-1] = sin(planar_angle) * random_on_sphere(dim - 1) @@ -13,9 +13,4 @@ classifiers = Operating System :: OS Independent [options] -package_dir = - = src -packages = find: - -[options.packages.find] -where = src
\ No newline at end of file +packages = sambal diff --git a/src/sambal/__init__.py b/src/sambal/__init__.py deleted file mode 100644 index e69de29..0000000 --- a/src/sambal/__init__.py +++ /dev/null |