diff --git a/double_pendule.py b/examples/double_pendule.py similarity index 95% rename from double_pendule.py rename to examples/double_pendule.py index 5c9776d..dec7ebc 100644 --- a/double_pendule.py +++ b/examples/double_pendule.py @@ -1,3 +1,7 @@ +import sys +import os +sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + import legrandchien as lgc import matplotlib.pyplot as plt import matplotlib.animation as animation diff --git a/double_pendule_a_ressort.py b/examples/double_pendule_a_ressort.py similarity index 95% rename from double_pendule_a_ressort.py rename to examples/double_pendule_a_ressort.py index a2a024d..2dc2c7c 100644 --- a/double_pendule_a_ressort.py +++ b/examples/double_pendule_a_ressort.py @@ -1,3 +1,7 @@ +import sys +import os +sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + import legrandchien as lgc import matplotlib.pyplot as plt import matplotlib.animation as animation diff --git a/pendule_a_ressort.py b/examples/pendule_a_ressort.py similarity index 94% rename from pendule_a_ressort.py rename to examples/pendule_a_ressort.py index 6eba8b7..04fa9d3 100644 --- a/pendule_a_ressort.py +++ b/examples/pendule_a_ressort.py @@ -1,3 +1,7 @@ +import sys +import os +sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + import legrandchien as lgc import matplotlib.pyplot as plt import matplotlib.animation as animation diff --git a/pendule_simple.py b/examples/pendule_simple.py similarity index 93% rename from pendule_simple.py rename to examples/pendule_simple.py index 59a333a..a669249 100644 --- a/pendule_simple.py +++ b/examples/pendule_simple.py @@ -1,3 +1,7 @@ +import sys +import os +sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + import legrandchien as lgc import matplotlib.pyplot as plt import matplotlib.animation as animation diff --git a/legrandchien.py b/legrandchien.py index d254411..9992a05 100644 --- a/legrandchien.py +++ b/legrandchien.py @@ -555,7 +555,7 @@ class Equation: dico[var.name] = 0. # print([var.name for var in unknown]) - print(equations[0]) + # print(equations[0]) assert(len(unknown) == len(equations)) n = len(unknown)