OSPC-ACA

Download, Installation, and Usage
Login

There are three steps: downloading the source code, installing Python, and using Python to execute the code.

Downloading OSPC-ACA Source Code

Click on the check-in link just to the right of Leaf at the tip of the trunk branch in the Timeline. Then click on either Tarball or ZIP archive on the Downloads line of the Overview, depending on whether you want a .tar.gz or a .zip archive of all the project files. The downloaded archive file will be named either
OSPC-ACA-<version>.tar.gx
or
OSPC-ACA-<version>.zip,
where <version> is a ten-digit hexadecimal number that is an abbreviation of the full identifier of the Leaf check-in you selected for downloading.

We strongly recommend that you expand the archive file in your home directory. Move the archive file into your home directory where a new subdirectory called OSPC-ACA-<version> will contain all the project files. Then expand the archive file using the appropriate tool (for example, the unzip tool if you downloaded a ZIP archive file).

At this stage, you can read the source code using any text editor.

Installing Anaconda Python Distribution

If you want to execute the scripts, you will need to install on your computer the free Anaconda Python Distribution (3.6+) available from at this link. This installation will not interfere with any other Python installation on your computer and does not require administrative privileges.

To check that the Python installation is working as expected, change directory to OSPC-ACA-<version> and at the operating-system command prompt (typically either $ or >) in that directory, enter the following command (that is, the text to the right of the operating-system prompt):

OSPC-ACA-<version>$ python --version

Your should see something like the following:

Python 3.9.11

Using Python to Execute Source Code

To check that everything is working as expected, change directory to OSPC-ACA-<version> and at the operating-system command prompt in that directory, enter the following command:

OSPC-ACA-<version>$ python tests.py

If Python is correctly installed and the project files have been downloaded successfully, the `tests.py` script should execute in a minute or so without writing any output to the screen. If you did get output to the screen, please send Martin Holmer (martin dot holmer at gmail dot com) the output that was written to the screen by the `test.py` script.

If you pass the tests, begin exploring the ptc.py script by entering the following commands for information:

OSPC-ACA-<version>$ python ptc.py --help
OSPC-ACA-<version>$ python ptc.py --sample_format
OSPC-ACA-<version>$ python ptc.py --output_format

and by entering the following command to see the script in action:

OSPC-ACA-<version>$ python ptc.py

Next read about how to create your own sample files.