Package: cheope
Documentationcheopehas its own documentation and can be foundhereCreate the appropriate environmentIt is suggestted to create a separate anaconda environment to proceed with the installation:conda create -n cheope python==3.8 numpy scipy matplotlib pandasAfter creating a conda environmnent calledcheopeand installed the basic librariesnumpy,scipy,matplotlibandpandas, activate the environmentconda activate cheopeBefore installing cheope, installcythonandmpi4pyusing conda:conda install cython mpi4pyDownload and InstallDownload with PyPI:Simply:pip install cheopeDownload from GitHub:git clone https://github.com/tiziano1590/cheops_analysis_packagego to your local Cheope repository and install it with the following command:pip install -e .IMPORTANT: For the correct usage of the parallel version of pycheops.
To do so install pycheops tiziano190 repository:git clone https://github.com/tiziano1590/pycheops

cd pycheopsswitch to the parallel branch:git checkout paralleland install it:pip install -e .CheopsIn this section we regroup all the commands inherent to the CHEOPS space mission dataset analysis. Here we include some visualisation and analysis options.UsageTo use it, simply digit the command:cheope -i path/to/parameters/file.ymlRun initial check of a datasetCheope will run a basic analysis of the input dataset, checking the lightcurve and providing some basic statistics about it.
The command to run the basic check is:cheope -i path/to/parameters/file.yml -scRun analysis for a Single Visit observation and model selection with Bayes FactorCheope can run a single visit analysis for a transit observation, compares several models with different
parameters and computes a Bayes factor for each of them, comparing them with the simple transit model without parameters.To run Cheope in this configuration use the command:cheope -i path/to/parameters/file.yml -sbMultivisit runIn this mode, if folds all the input observations and runs a multivisit analysis.
To activate the multivisit mode, run:cheope -i path/to/parameters/file.yml -mUser-defined light curvecheopecan run also user-precomputer light curves stored in an ascii file, the minimum file should have three columns with: time, flux and the error on the flux.
Once reformatted the lightcurve into a.txtor.datfile, it is possible to fit the user-defined lightcurve by using the command:cheope -i path/to/parameters/file.yml -aTESSIn this section we explore the possible commands to analyise TESS-like datasetsRun analysis for a Single Visit including also your Kepler/TESS pointsA normal Single visit run, including Kepler/TESS observation.The command is:cheope -i path/to/parameters/file.yml -sktUse of Seleniumcheopeincorporates a web-browser bot able to download all the datasets related to a particular target.The CHEOPS datasetWe bypass the official API (will be included in a future version) and use a human-simulated behaviour to log into the DACE platform and download the target's dataset. To download and run a preliminary check on a planetary system, run:cheope -i path/to/parameters/file.yml --selenium-dace --add-single-checkThe TESS datasetHere there is a list of command to check and analyse some TESS lightcurves.download TESS lighcurves and run preliminary checkTo run the latest sectors' light curves and run a preliminary check on them:cheope -i path/to/parameters/file.yml --selenium-tess --add-single-kepler-tess --downloadOnly display the TESS' lighcurvesIf you want only display the TESS' lightcurve withough running any check nor analysis, run:cheope -i path/to/parameters/file.yml --selenium-tess --read-fits