diff options
author | hanemile <emile.hansmaennel@gmail.com> | 2018-02-09 13:42:24 +0100 |
---|---|---|
committer | hanemile <emile.hansmaennel@gmail.com> | 2018-02-09 13:42:24 +0100 |
commit | 1b1e0bfd1a5e9d88886b58b0d4db05cafbb36365 (patch) | |
tree | 54358cc54ffa8ec0bb068334c0ce699e2fb1035e /src/python/spiral/gen.py | |
parent | 50012de6c2fd3eae0aa04b7a2b4e497dc0bae27a (diff) |
added the spiral folder
Diffstat (limited to 'src/python/spiral/gen.py')
-rw-r--r-- | src/python/spiral/gen.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/python/spiral/gen.py b/src/python/spiral/gen.py new file mode 100644 index 0000000..f9f6a0a --- /dev/null +++ b/src/python/spiral/gen.py @@ -0,0 +1,23 @@ +# general libraries +import numpy as np + +list_a = [] + +class spiral: + def __init__(self): + self.list_a = [] + + def print_list_a(self): + for value in self.list_a: + print(value) + + # def gen_stars(self, n, list_a) + + +# define a function generating n stars +def gen_stars(n, list_a): + for i in range(0, n): + list_a.append(np.random.random((3))) + +if __name__ == "__main__": + gen_stars(n) |