add simulation to white-list

This commit is contained in:
yangdsh 2019-10-22 23:09:56 +00:00 committed by Dana Van Aken
parent d71c131e5b
commit 826137bd3b
2 changed files with 2 additions and 2 deletions

View File

@ -75,6 +75,8 @@ EXCLUDE_DIRECTORIES = [
EXCLUDE_FILES = [ EXCLUDE_FILES = [
# Django-generated files # Django-generated files
os.path.join(OTTERTUNE_DIR, 'server/website/manage.py'), os.path.join(OTTERTUNE_DIR, 'server/website/manage.py'),
# file causing import error
os.path.join(OTTERTUNE_DIR, 'server/analysis/simulation.py'),
] ]
CHECKSTYLE_JAR_PATH = os.path.join(OTTERTUNE_DIR, CHECKSTYLE_JAR_PATH = os.path.join(OTTERTUNE_DIR,

View File

@ -5,12 +5,10 @@
# #
import imp
import random import random
import os import os
import sys import sys
try: try:
imp.find_module('matplotlib.pyplot')
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
except (ModuleNotFoundError, ImportError): except (ModuleNotFoundError, ImportError):
plt = None plt = None