Installation
The COMETS Python toolbox (cometspy) is available from the package manager PyPI cometspy using the pip command. To install, run:
pip install cometspy
Warning! The current version will work only with Pandas version 1.5.0 or higer. Pandas changed the variable line_terminator to lineterminator in the ‘csv’ modules. More at: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_csv.html “Changed in version 1.5.0: Previously was line_terminator, changed for consistency with read_csv and the standard library ‘csv’ module.”
If you get an error message about line_terminator, update your pandas package.
Of course, to use cometspy you first need to install COMETS on your computer. See section below.
Installation of COMETS
There are two ways to install COMETS: using the COMETS installer or by unpacking the .tar.gz file. The easiest is to use the installer, especially recommended for individual use on a laptop or desktop. The installer can be downloaded from: https://comets.bu.edu The users are required to register, after which they can obtain the installer appropriate for their system. The installer guides the user through a standard GUI installation procedure that includes accepting the license agreement, choosing the directory where COMETS will be installed (the default directory is recommended), the option to create a desktop shortcut etc. The installer is available for the Windows, MacOS and Linux systems.
In addition to the GUI installer, we provide the comets_x.x.x.tar.gz file for custom installation, typically on a Linux system. The file should be unpacked in the directory were COMETS will be installed with:
$tar -xzvf comets_x.x.x.tar.gz ./
This will create the comets installation directory.
In Unix systems (Linux or MacOS) the user also needs to specify the COMETS_HOME environment variable, which has to point to the comets installation folder. In Linux systems, this is done by adding the following line to the .bashrc file located in the home folder:
export COMETS_HOME = "/your/comets/installation/folder"