tree: 210c69018b490f7c868e810fe753e38814c2c847 [path history] [tgz]
  1. .gitignore
  2. .idea/
  5. conda-requirements.txt
  6. package-list.txt
  8. static/
  10. tests/
  11. webservice/


Python module that exposes NEXUS analytical capabilities via a HTTP webservice. Accessible endpoints are described on the API page of the wiki.

Developer Setup

NOTE This project has a dependency on nexusproto. Make sure data-access is installed in the same environment you will be using for this module.

  1. Setup a separate conda env or activate an existing one

    conda create --name nexus-analysis python=2.7.17
    conda activate nexus-analysis
  2. Install conda dependencies and other dependencies

    cd analysis
    pip install asyncio # for asynchronous job management
    conda install pyspark
    conda install -c conda-forge --file conda-requirements.txt
    #conda install numpy matplotlib mpld3 scipy netCDF4 basemap gdal pyproj= libnetcdf=
  3. Update the configuration for solr and cassandra

Create .ini files from a copy of their counterpart .ini.default


This files will override the default values.

They are not saved on git and will not be overridden when you pull the code.

BUT be carefull to remove them when you build the docker image. Otherwise they will be embedded and use in the docker image.

  1. install nexusproto

  2. install data-access dependency:

    cd data-access
    pip install cython
    python install
  3. Set environment variables (examples):

  4. Launch unit tests

    pip install pytest pytest

  5. Launch python webservice/ in command line or run it from the IDE.