Skip to content

Commit

Permalink
bugfix:example cases path issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
armantekinalp committed Nov 2, 2020
1 parent 374f5fd commit adc8976
Show file tree
Hide file tree
Showing 14 changed files with 39 additions and 39 deletions.
6 changes: 3 additions & 3 deletions examples/ContinuumFlagellaCase/continuum_flagella.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

import numpy as np
import sys

# FIXME without appending sys.path make it more generic
sys.path.append("../../")
import os
from elastica import *
from examples.ContinuumFlagellaCase.continuum_flagella_postprocessing import (
Expand All @@ -11,9 +14,6 @@
compute_projected_velocity,
)

# FIXME without appending sys.path make it more generic
sys.path.append("../../")


class FlagellaSimulator(BaseSystemCollection, Constraints, Forcing, CallBacks):
pass
Expand Down
6 changes: 3 additions & 3 deletions examples/ContinuumSnakeCase/continuum_snake.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

import numpy as np
import sys

# FIXME without appending sys.path make it more generic
sys.path.append("../../")
import os
from elastica import *
from examples.ContinuumSnakeCase.continuum_snake_postprocessing import (
Expand All @@ -11,9 +14,6 @@
compute_projected_velocity,
)

# FIXME without appending sys.path make it more generic
sys.path.append("../../")


class SnakeSimulator(BaseSystemCollection, Constraints, Forcing, CallBacks):
pass
Expand Down
6 changes: 3 additions & 3 deletions examples/FrictionValidationCases/axial_friction.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
section 4.1.4 and Appendix G """
import numpy as np
import sys

# FIXME without appending sys.path make it more generic
sys.path.append("../../")
from elastica import *
from examples.FrictionValidationCases.friction_validation_postprocessing import (
plot_axial_friction_validation,
)

# FIXME without appending sys.path make it more generic
sys.path.append("../../")


class AxialFrictionSimulator(BaseSystemCollection, Constraints, Forcing):
pass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

import numpy as np
import sys

# FIXME without appending sys.path make it more generic
sys.path.append("../../")
from elastica import *
from examples.FrictionValidationCases.friction_validation_postprocessing import (
plot_friction_validation,
)

# FIXME without appending sys.path make it more generic
sys.path.append("../../")


class RollingFrictionInitialVelocitySimulator(
BaseSystemCollection, Constraints, Forcing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

import numpy as np
import sys

# FIXME without appending sys.path make it more generic
sys.path.append("../../")
from elastica import *
from examples.FrictionValidationCases.friction_validation_postprocessing import (
plot_friction_validation,
)

# FIXME without appending sys.path make it more generic
sys.path.append("../../")


class RollingFrictionOnInclinedPlaneSimulator(
BaseSystemCollection, Constraints, Forcing
Expand Down
6 changes: 3 additions & 3 deletions examples/FrictionValidationCases/rolling_friction_torque.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

import numpy as np
import sys

# FIXME without appending sys.path make it more generic
sys.path.append("../../")
from elastica import *
from examples.FrictionValidationCases.friction_validation_postprocessing import (
plot_friction_validation,
)

# FIXME without appending sys.path make it more generic
sys.path.append("../../")


class RollingFrictionTorqueSimulator(BaseSystemCollection, Constraints, Forcing):
pass
Expand Down
6 changes: 3 additions & 3 deletions examples/HelicalBucklingCase/convergence_helicalbuckling.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

import numpy as np
import sys

# FIXME without appending sys.path make it more generic
sys.path.append("../../")
from elastica import *
from examples.HelicalBucklingCase.helicalbuckling_postprocessing import (
analytical_solution,
Expand All @@ -11,9 +14,6 @@
)
from examples.convergence_functions import plot_convergence, calculate_error_norm

# FIXME without appending sys.path make it more generic
sys.path.append("../../")


class HelicalBucklingSimulator(BaseSystemCollection, Constraints, Forcing):
pass
Expand Down
6 changes: 3 additions & 3 deletions examples/HelicalBucklingCase/helicalbuckling.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

import numpy as np
import sys

# FIXME without appending sys.path make it more generic
sys.path.append("../../")
from elastica import *
from examples.HelicalBucklingCase.helicalbuckling_postprocessing import (
plot_helicalbuckling,
)

# FIXME without appending sys.path make it more generic
sys.path.append("../../")


class HelicalBucklingSimulator(BaseSystemCollection, Constraints, Forcing):
pass
Expand Down
6 changes: 3 additions & 3 deletions examples/JointCases/fixed_joint.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import numpy as np
import sys

# FIXME without appending sys.path make it more generic
sys.path.append("../../")
from elastica import *
from examples.JointCases.external_force_class_for_joint_test import (
EndpointForcesSinusoidal,
Expand All @@ -13,9 +16,6 @@
plot_video_xz,
)

# FIXME without appending sys.path make it more generic
sys.path.append("../../")


class FixedJointSimulator(
BaseSystemCollection, Constraints, Connections, Forcing, CallBacks
Expand Down
6 changes: 3 additions & 3 deletions examples/JointCases/hinge_joint.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import numpy as np
import sys

# FIXME without appending sys.path make it more generic
sys.path.append("../../")
from elastica import *
from examples.JointCases.external_force_class_for_joint_test import (
EndpointForcesSinusoidal,
Expand All @@ -13,9 +16,6 @@
plot_video_xz,
)

# FIXME without appending sys.path make it more generic
sys.path.append("../../")


class HingeJointSimulator(
BaseSystemCollection, Constraints, Connections, Forcing, CallBacks
Expand Down
6 changes: 3 additions & 3 deletions examples/JointCases/spherical_joint.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

import numpy as np
import sys

# FIXME without appending sys.path make it more generic
sys.path.append("../../")
from elastica import *
from examples.JointCases.external_force_class_for_joint_test import (
EndpointForcesSinusoidal,
Expand All @@ -14,9 +17,6 @@
plot_video_xz,
)

# FIXME without appending sys.path make it more generic
sys.path.append("../../")


class SphericalJointSimulator(
BaseSystemCollection, Constraints, Connections, Forcing, CallBacks
Expand Down
6 changes: 3 additions & 3 deletions examples/TimoshenkoBeamCase/convergence_timoshenko.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

import numpy as np
import sys

# FIXME without appending sys.path make it more generic
sys.path.append("../../")
from elastica import *
from examples.TimoshenkoBeamCase.timoshenko_postprocessing import (
plot_timoshenko,
analytical_shearable,
)
from examples.convergence_functions import calculate_error_norm, plot_convergence

# FIXME without appending sys.path make it more generic
sys.path.append("../../")


class TimoshenkoBeamSimulator(BaseSystemCollection, Constraints, Forcing):
pass
Expand Down
4 changes: 2 additions & 2 deletions examples/TimoshenkoBeamCase/timoshenko.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

import numpy as np
import sys
from elastica import *
from examples.TimoshenkoBeamCase.timoshenko_postprocessing import plot_timoshenko

# FIXME without appending sys.path make it more generic
sys.path.append("../../")
from elastica import *
from examples.TimoshenkoBeamCase.timoshenko_postprocessing import plot_timoshenko


class TimoshenkoBeamSimulator(BaseSystemCollection, Constraints, Forcing):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# FIXME without appending sys.path make it more generic
import sys

sys.path.append("../../")
sys.path.append("../../../")

import os
from collections import defaultdict
Expand Down

0 comments on commit adc8976

Please sign in to comment.