Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Currently, this app is unavailable in the Discovery Environment; however, it is available in the Canberra/Borda instance on Atmosphere. To use the app in Atmosphere, access the Terminal and input the following commands (example .

Example input and output data has already been loaded into this image, as well as, the usage file mentioned at the bottom of this page):.

Code Block
canberra.py <options> <inputfilename>

...

Firstly open your instance with the vnc image viewer (or if you are comfortable with the command line, the shell. Although this example uses the vnc viewer)

Secondly we will change our working director to the Desktop. The results automatically output to the current working directory and the Desktop is an easy to access place. Feel free to chose any other place you may want for your own data.

...

Code Block
canberra.py /usr/bin/example_data/canberraInput.csv 3

(Running the above as stated should result in a screenshot similar to this one)

Input File Format

The input file should contain delimited values (defaulting to CSV unless options are specified) with an optional header row if the correct option is specified on the command line; otherwise, the first line is considered to be data.
Each row represents a ranked list, with each item the index of the position of the item in the original list. For example, if the original list is (55, 66, 44, 22), the corresponding row in the input file is (2, 3, 1, 0). Whether the ranking starts with 0 or 1 does not matter as long as all the lists start with the same number. Currently the app is only accepting ranked data of equal columns. For example if a list contains (4, 1, 2 3), then each row that follows must be of the same size such as (3 ,2, 4,1), (2,1, 3, 4) etc. 

...