From 1d4be2f828d4b6fbbd4d361503214b68dd1be754 Mon Sep 17 00:00:00 2001 From: "Jason K. Moore" Date: Tue, 17 Feb 2015 23:58:05 -0800 Subject: [PATCH] Moved yeadon measurement data into raw data directory. --- {src => raw-data}/JasonYeadonMeas.txt | 0 src/model.py | 6 +++++- 2 files changed, 5 insertions(+), 1 deletion(-) rename {src => raw-data}/JasonYeadonMeas.txt (100%) diff --git a/src/JasonYeadonMeas.txt b/raw-data/JasonYeadonMeas.txt similarity index 100% rename from src/JasonYeadonMeas.txt rename to raw-data/JasonYeadonMeas.txt diff --git a/src/model.py b/src/model.py index 7ae9838..f488eed 100644 --- a/src/model.py +++ b/src/model.py @@ -9,6 +9,9 @@ from pydy.codegen.ode_function_generator import generate_ode_function from fast_interpolate import Interpolator +import utils + +PATHS = utils.config_paths() sym_kwargs = {'positive': True, 'real': True} me.dynamicsymbols._t = sy.symbols('t', **sym_kwargs) @@ -434,7 +437,8 @@ def _generate_closed_loop_eoms(self): def _numerical_parameters(self): - h = yeadon.Human('JasonYeadonMeas.txt') + h = yeadon.Human(os.path.join(PATHS['raw_data_dir'], + 'JasonYeadonMeas.txt')) hip_pos = h.J1.pos ankle_pos = h.J2.solids[1].pos