Skip to content

Commit

Permalink
Update test_core_EnsembleSeries.py (#471)
Browse files Browse the repository at this point in the history
commented out redundant test
  • Loading branch information
CommonClimate authored Nov 14, 2023
1 parent 512c92d commit e2604d6
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions pyleoclim/tests/test_core_EnsembleSeries.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,22 +211,22 @@ def test_histplot_t0(self):
ts_ens.histplot()
pyleo.closefig()

class TestUIEnsembleSeriesDistplot():
def test_histplot_t0(self):
'''Test for EnsembleSeries.distplot()
'''
nn = 30 # number of noise realizations
nt = 500
series_list = []
# class TestUIEnsembleSeriesDistplot():
# def test_histplot_t0(self):
# '''Test for EnsembleSeries.distplot()
# '''
# nn = 30 # number of noise realizations
# nt = 500
# series_list = []

signal = gen_ts(model='colored_noise', nt=nt, alpha=1.0).standardize()
noise = np.random.randn(nt, nn)
# signal = gen_ts(model='colored_noise', nt=nt, alpha=1.0).standardize()
# noise = np.random.randn(nt, nn)

for idx in range(nn): # noise
ts = pyleo.Series(time=signal.time, value=signal.value+noise[:,idx])
series_list.append(ts)
# for idx in range(nn): # noise
# ts = pyleo.Series(time=signal.time, value=signal.value+noise[:,idx])
# series_list.append(ts)

ts_ens = pyleo.EnsembleSeries(series_list)
# ts_ens = pyleo.EnsembleSeries(series_list)

ts_ens.histplot()
pyleo.closefig()
# ts_ens.histplot()
# pyleo.closefig()

0 comments on commit e2604d6

Please sign in to comment.