From 8c2060b162dd65e7015e4470e61cd8648f12b614 Mon Sep 17 00:00:00 2001
From: Gregory Ashton <gregory.ashton@ligo.org>
Date: Mon, 21 May 2018 20:19:20 +1000
Subject: [PATCH] Remove dependencies

 Removes chainconsumer and following requirements. These where causing
the CI to be very slow. Instead, rather than plotting, just list a
warning.
---
 .gitlab-ci.yml   | 1 -
 requirements.txt | 3 +--
 tupak/result.py  | 6 +++---
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 20b174c78..6621a33c0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,7 +21,6 @@ exitcode-jessie:
     - pip install -r requirements.txt
     - pip install coverage
     - pip install coverage-badge
-    - pip install chainconsumer  # Required by some of the example scripts
     - python setup.py install
     - coverage erase
     - coverage run --include=tupak/* -a test/prior_tests.py
diff --git a/requirements.txt b/requirements.txt
index 8903ef167..fe8a629b9 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,10 +1,9 @@
 future
 dynesty
 corner
-patsy>=0.4
 numpy>=1.9
 matplotlib>=2.0
-scipy>=0.19
+scipy
 gwpy
 pandas
 astropy
diff --git a/tupak/result.py b/tupak/result.py
index be3a05e61..4d5ba821f 100644
--- a/tupak/result.py
+++ b/tupak/result.py
@@ -3,14 +3,14 @@ import os
 import numpy as np
 import deepdish
 import pandas as pd
-import tupak
 
 try:
     from chainconsumer import ChainConsumer
 except ImportError:
     def ChainConsumer():
-        raise ImportError(
-            "You do not have the optional module chainconsumer installed")
+        logging.warning(
+            "You do not have the optional module chainconsumer installed"
+            " unable to generate a corner plot")
 
 
 def result_file_name(outdir, label):
-- 
GitLab