openglider.utils package

Submodules

openglider.utils.bezier module

openglider.utils.cached_property module

Module contents

class openglider.utils.Config(dct=None)[source]

Bases: object

get(key)[source]
openglider.utils.consistent_value(elements, attribute)[source]
class openglider.utils.dualmethod(func)[source]

Bases: object

A Decorator to have a combined class-/instancemethod

>>>class a: ... @dualmethod ... def test(this): ... return this ... >>>a.test() <class ‘__main__.a’> >>>a().test() <__main__.a object at 0x7f133b5f7198> >>>

an instance-check could be:

is_instance = not type(this) is type
openglider.utils.linspace(start, stop, count)[source]
openglider.utils.sign(val)[source]