From 6fb7aa3f789455c54a37e3c94a3838ce83ce2e89 Mon Sep 17 00:00:00 2001 From: SiboVG Date: Fri, 11 Feb 2022 04:09:03 +0100 Subject: [PATCH 1/3] Change simple.ork load location in examples --- examples/lazy.py | 2 +- examples/monte_carlo.py | 2 +- examples/simple_plot.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/lazy.py b/examples/lazy.py index 1cc84bb..dc5bf13 100644 --- a/examples/lazy.py +++ b/examples/lazy.py @@ -11,7 +11,7 @@ orh = orhelper.Helper(instance) # Load document, run simulation and get data and events - doc = orh.load_doc(os.path.join('examples', 'simple.ork')) + doc = orh.load_doc('simple.ork') sim = doc.getSimulation(0) diff --git a/examples/monte_carlo.py b/examples/monte_carlo.py index c1c04fb..6653501 100644 --- a/examples/monte_carlo.py +++ b/examples/monte_carlo.py @@ -17,7 +17,7 @@ def add_simulations(self, num): # Load the document and get simulation orh = orhelper.Helper(instance) - doc = orh.load_doc(os.path.join('examples', 'simple.ork')) + doc = orh.load_doc('simple.ork') sim = doc.getSimulation(0) # Randomize various parameters diff --git a/examples/simple_plot.py b/examples/simple_plot.py index c1b0931..b385991 100644 --- a/examples/simple_plot.py +++ b/examples/simple_plot.py @@ -11,7 +11,7 @@ # Load document, run simulation and get data and events - doc = orh.load_doc(os.path.join('examples', 'simple.ork')) + doc = orh.load_doc('simple.ork') sim = doc.getSimulation(0) orh.run_simulation(sim) data = orh.get_timeseries(sim, [FlightDataType.TYPE_TIME, FlightDataType.TYPE_ALTITUDE, FlightDataType.TYPE_VELOCITY_Z]) From d33a925498c3750f4ddeda87b10137e17f8bfe32 Mon Sep 17 00:00:00 2001 From: SiboVG Date: Sun, 10 Apr 2022 08:11:10 +0200 Subject: [PATCH 2/3] Update examples/lazy.py Co-authored-by: Andrei Popescu --- examples/lazy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/lazy.py b/examples/lazy.py index dc5bf13..ccbbd89 100644 --- a/examples/lazy.py +++ b/examples/lazy.py @@ -11,7 +11,7 @@ orh = orhelper.Helper(instance) # Load document, run simulation and get data and events - doc = orh.load_doc('simple.ork') + doc = orh.load_doc(os.path.join(os.path.dirname(__file__), 'simple.ork')) sim = doc.getSimulation(0) From 8987ce59cf9fd41c8954926cf1b40109be777ab0 Mon Sep 17 00:00:00 2001 From: Sibo Van Gool Date: Thu, 26 Jan 2023 10:41:47 +0100 Subject: [PATCH 3/3] Sibo vg patch 1 (#1) Fix file location of example simple rocket --- examples/monte_carlo.py | 2 +- examples/simple_plot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/monte_carlo.py b/examples/monte_carlo.py index 6653501..23e460d 100644 --- a/examples/monte_carlo.py +++ b/examples/monte_carlo.py @@ -17,7 +17,7 @@ def add_simulations(self, num): # Load the document and get simulation orh = orhelper.Helper(instance) - doc = orh.load_doc('simple.ork') + doc = orh.load_doc(os.path.dirname(__file__), 'simple.ork') sim = doc.getSimulation(0) # Randomize various parameters diff --git a/examples/simple_plot.py b/examples/simple_plot.py index b385991..2fca861 100644 --- a/examples/simple_plot.py +++ b/examples/simple_plot.py @@ -11,7 +11,7 @@ # Load document, run simulation and get data and events - doc = orh.load_doc('simple.ork') + doc = orh.load_doc(os.path.dirname(__file__), 'simple.ork') sim = doc.getSimulation(0) orh.run_simulation(sim) data = orh.get_timeseries(sim, [FlightDataType.TYPE_TIME, FlightDataType.TYPE_ALTITUDE, FlightDataType.TYPE_VELOCITY_Z])