Running an Experiment

From KubovyLab

Development Setup: Libs | IDE | Source | Execution

Running Java Experiments

  1. Navagate to the top level package containing the class with the main method you want to execute. This is usually in the class with the name of the experiment with a Main.java prefix.
  2. Select this "Main" file, right/ctrl click to bring up the context menu. Select Run As→Java Application.
  3. Note the tool bar button with the "Play" icon. This will run the last file you invoked. Read the Eclipse help documentation for more details.

Running Python Experiments

Running an experiment is a simple matter of executing the main script associated with the program. The current structure of the source code (which may change) is such that each experiment has a "main" script in the top level directory, and references support scripts within subdirectories.

  1. Make sure you have selected a Python interpreter to use when running a Python script.
  2. Also, make sure you have the Java perspective open.
  3. Right (or ctrl) click on the file DotLatticeMain.py in the navigator, and select the menu Run As→Python Run.
  4. The setup screen for the dot lattice experiment should appear.

Note that once a script has been run once via the Python Run menu, it becomes available via the Image:RunButton.png button. Clicking the arrow next to it displays a list of other previously run scripts.


Development Setup: Libs | IDE | Source | Execution