Skip to content

Commit 20f9dd5

Browse files
committed
hopefully final adjustment to dir for examples...
1 parent ae40a54 commit 20f9dd5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/example_driver.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@
2323
import matplotlib.pyplot as plt
2424

2525
dir = os.path.dirname(os.path.realpath(__file__))
26+
os.chdir(dir)
2627

2728
# set yaml file location and name
2829
ontology_file = "OntologySample200m.yaml"
2930

3031
#%% Section 1: Project without RAFT
3132
print('Creating project without RAFT\n')
32-
print(os.getcwd())
33+
3334
# create project object
34-
project = Project(file=os.path.join(dir, ontology_file), raft=False)
35+
project = Project(file=ontology_file, raft=False)
3536
# create moorpy system of the array, include cables in the system
3637
project.getMoorPyArray(cables=True)
3738
# plot in 3d, using moorpy system for the mooring and cable plots

0 commit comments

Comments
 (0)