def test_std_dev_compare(self): ldcpy.plot( ds, 'TS', set1='orig', set2='recon', metric='std', color='cmo.thermal', plot_type='spatial_comparison', ) self.assertTrue(True)
def test_prob_neg_compare(self): ldcpy.plot( ds2, 'PRECT', set1='orig', set2='recon', metric='prob_negative', color='binary', plot_type='spatial_comparison', ) self.assertTrue(True is True)
def test_log_odds_positive_compare(self): ldcpy.plot( ds2, 'PRECT', set1='orig', set2='recon', metric='odds_positive', metric_type='ratio', transform='log', color='cmo.thermal', ) self.assertTrue(True is True)
def test_mean_diff_standardized(self): with pytest.raises(ValueError): ldcpy.plot( ds, 'TS', set1='orig', set2='recon', metric='mean', metric_type='diff', standardized_err=True, ) self.assertTrue(True)
def test_prob_negative_log_compare(self): ldcpy.plot( ds, 'TS', set1='orig', set2='recon', metric='prob_negative', color='coolwarm', transform='log', plot_type='spatial_comparison', ) self.assertTrue(True is True)
def test_mean_abs_diff_time_series(self): ldcpy.plot( ds, 'TS', set1='orig', set2='recon', group_by='time.dayofyear', metric='mean_abs', metric_type='diff', plot_type='time_series', ) self.assertTrue(True is True)
def test_winter_histogram(self): ldcpy.plot( ds2, 'PRECT', set1='orig', set2='recon', metric='mean', metric_type='diff', subset='winter', plot_type='histogram', group_by='time.dayofyear', ) self.assertTrue(True is True)
def test_periodogram_grouped(self): ldcpy.plot( ds2, 'PRECT', set1='orig', set2='recon', metric='mean', metric_type='raw', plot_type='periodogram', standardized_err=False, group_by='time.dayofyear', ) self.assertTrue(True is True)
def test_mean_diff_time_series_subset(self): ldcpy.plot( ds2, 'PRECT', set1='recon', set2='orig', metric_type='diff', metric='mean', plot_type='time_series', subset='first50', lat=44.56, lon=-123.26, ) self.assertTrue(True)
def test_subset_lat_lon_ratio_time_series(self): ldcpy.plot( ds2, 'PRECT', set1='orig', metric='mean', set2='recon', metric_type='ratio', group_by=None, subset='first50', lat=44.76, lon=-93.75, plot_type='time_series', ) self.assertTrue(True is True)
def test_std_by_month(self): ldcpy.plot( ds, 'TS', set1='orig', metric='std', plot_type='time_series', group_by='time.month' ) self.assertTrue(True)
def test_mean_diff(self): ldcpy.plot(ds, 'TS', set1='orig', set2='recon', metric='mean', metric_type='diff') self.assertTrue(True)
def test_mean_compare(self): ldcpy.plot( ds, 'TS', set1='orig', metric='mean', set2='recon', plot_type='spatial_comparison', ) self.assertTrue(True)
def test_prob_neg(self): ldcpy.plot(ds2, 'PRECT', set1='orig', set2='recon', metric='prob_negative') self.assertTrue(True)
def test_mean_time_series(self): ldcpy.plot(ds, 'TS', set1='orig', metric='mean', plot_type='time_series') self.assertTrue(True)
def test_mean_start_end(self): ldcpy.plot(ds, 'TS', set1='orig', metric='mean', start=0, end=8, plot_type='time_series') self.assertTrue(True)
def test_mean_3d(self): ldcpy.plot(ds3, 'T', set1='orig', metric='mean', lev=29) self.assertTrue(True)
def test_zscore_plot(self): ldcpy.plot( ds, 'TS', set1='orig', set2='recon', metric_type='metric_of_diff', metric='zscore', ) self.assertTrue(True is True)
def test_time_series_single_point_3d_data(self): ldcpy.plot( ds3, 'T', set1='orig', metric='mean', plot_type='time_series', group_by='time.day', ) self.assertTrue(True is True)