Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ygpc into develop
  • Loading branch information
Konstantin Weise committed Dec 5, 2023
2 parents b631c7b + b5ab207 commit 45d4159
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 9 deletions.
8 changes: 6 additions & 2 deletions pygpc/Visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
import os
import sys
import scipy.stats
import matplotlib as mpl
import matplotlib.pyplot as plt

try:
import matplotlib as mpl
import matplotlib.pyplot as plt
except ImportError:
pass


class Visualization:
Expand Down
6 changes: 5 additions & 1 deletion pygpc/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
import scipy.stats
import scipy.special
import scipy.spatial
import matplotlib.pyplot as plt

try:
import matplotlib.pyplot as plt
except ImportError:
pass

from scipy.spatial.distance import cdist
from .Visualization import plot_beta_pdf_fit
Expand Down
5 changes: 4 additions & 1 deletion pygpc/postprocessing.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import h5py
import matplotlib
import numpy as np
import pandas as pd

from .Grid import *
from .MEGPC import *
from .io import read_session

try:
import matplotlib
except ImportError:
pass

def get_sensitivities_hdf5(fn_gpc, output_idx=False, calc_sobol=True, calc_global_sens=False, calc_pdf=False,
algorithm="standard", n_samples=1e5):
Expand Down
8 changes: 6 additions & 2 deletions pygpc/testfunctions/euber_libV3.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
import scipy.optimize
import pdb
import mpmath as mp
from matplotlib.patches import Rectangle
import matplotlib.pyplot as plt

try:
from matplotlib.patches import Rectangle
import matplotlib.pyplot as plt
except ImportError:
pass


class euber():
Expand Down
10 changes: 7 additions & 3 deletions pygpc/validation.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import os
import h5py
import matplotlib
import seaborn as sns
import matplotlib.pyplot as plt
import scipy.stats
from scipy.signal import savgol_filter
from .misc import nrmsd
Expand All @@ -12,6 +9,13 @@
from .Grid import *
from .Visualization import *

try:
import matplotlib
import seaborn as sns
import matplotlib.pyplot as plt
except ImportError:
pass


def validate_gpc_mc(session, coeffs, coords=None, data_original=None, n_samples=1e4, output_idx=0, n_cpu=1,
smooth_pdf=[51, 5], bins=100, hist=False, fn_out=None, folder="gpc_vs_original_mc", plot=True):
Expand Down

0 comments on commit 45d4159

Please sign in to comment.