Download Using the Custom Anthropometry Python Script

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Using the Custom Anthropometry Python Script
Overview
Custom anthropometric databases can be added to the Jack product using a special python script.
Jack uses statistical equations for each scaled dimension. Each equation is a regression on stature and
BMI. To use the python script, equations for each dimension of interest must be supplied. If a particular
dimension needed by the Jack system is not provided, Jack will by default use dimensions based on the
1998 ANSUR database.
Registration of a Custom Database within Jack
1. Store your custom anthropometry script “SAMPLEdb.py” file in one of the following locations:
a) Your "Start In" folder.
o To find out where this folder is, right click on your Jack8.0.1 shortcut (on the desktop)
and click on properties.
o Note the Start In location (Ex: "C:\Program Files\Jack_8.0.1")
o Copy your SAMPLEdb.py file to this location
b) Your home directory
o To find your home directory, open the Jack DOS window, scroll through until you see a
line that says "using HOME __\...." (For example: using HOME C:\Documents and
settings\godin)
o Copy your SAMPLEdb.py file to this location
c) User specified location: (This could be used if you do not have write or access permissions to the
locations noted above)
o Open the Tcl console (View=> Toolbars => Consoles)
o Type "cd file_location" (Ex: cd C:/)
2. Open Jack, and open the python console (View=> Toolbars => Consoles)
a) In JackScript Console, type : import SAMPLEdb
b) In JackScript Console, type : SAMPLEdb.registerNewDatabase()
NOTE: this needs to be done before you open any of the scaling dialogues in Jack. If you open a
dialog and then try to register the file, it will not show up in your Anthro Database list.
3. Go to Scaling UI - you should see the new DB in the list
NOTE: You will need to register the DB every time you start Jack or you can add a command to your
Jk.tcl file so it registers this file automatically when Jack is started.
You can add the lines to your jk.tcl file and have it automatically load your custom data when Jack
starts:
jcPy_evalSimple “sys.path.append(“anthro sample file directory”)
jcPy_evalSimple “import SAMPLEdb”
jcPy_evalSimple “SAMPLEdb.registerNewDatabase()”