Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org starting at 10am CDT on 2 June 2020 and lasting for around 20 minutes. There will be a short period of downtime, around 5 minutes, towards the end of the maintenance window. Please direct any comments, questions, or concerns to uwm-help@cgca.uwm.edu.

Commit f3d16d7b authored by Gregory Ashton's avatar Gregory Ashton

Remove chainconsumer as a dependency

This demotes CC from a requirement to something optional. If
`ChainConsumer` is called when it is not installed, a warning message is
raised.
parent e8269967
Pipeline #19188 passed with stages
in 5 minutes and 23 seconds
......@@ -2,9 +2,15 @@ import logging
import os
import numpy as np
import deepdish
from chainconsumer import ChainConsumer
import pandas as pd
try:
from chainconsumer import ChainConsumer
except ImportError:
def ChainConsumer():
raise ImportError(
"You do not have the optional module chainconsumer installed")
class Result(dict):
......
......@@ -5,7 +5,6 @@ import logging
import os
import sys
import numpy as np
from chainconsumer import ChainConsumer
import matplotlib.pyplot as plt
from .result import Result
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment