diff options
author | Arun Isaac | 2021-03-26 14:43:07 +0530 |
---|---|---|
committer | Arun Isaac | 2021-03-26 14:48:48 +0530 |
commit | b6e2f7875029d1a5a0f6f7a5761b5f3af1f7b448 (patch) | |
tree | f9a470f6e947a0cfc1bec1b542318bd8b66a857b | |
parent | 05f6d0e94e5603caa769137508cf005bea3c9adc (diff) | |
download | sambal-b6e2f7875029d1a5a0f6f7a5761b5f3af1f7b448.tar.gz sambal-b6e2f7875029d1a5a0f6f7a5761b5f3af1f7b448.tar.lz sambal-b6e2f7875029d1a5a0f6f7a5761b5f3af1f7b448.zip |
Simplify directory structure.
* setup.cfg: Specify the sambal package explicitly.
* src/sambal: Move to sambal.
-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 |