def test_monthly_std_error(self): original_df = pd.read_csv(r'Comparison_Files/monthly_std_error.csv', index_col=0) original_df.index = np.array(['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'], dtype=np.object) test_df = hd.monthly_std_error(self.merged_df) self.assertIsNone(pd.testing.assert_frame_equal(original_df, test_df))
hv.plot(merged_data_df=daily_avg, legend=('Simulated', 'Observed'), grid=True, x_season=True, title='Daily Average Streamflow for ' + str(id) + ' - ' + name + '\n River: ' + rio + '. COMID: ' + str(comid), labels=['Datetime', 'Streamflow (m$^3$/s)'], linestyles=['b-', 'r-'], fig_size=(15, 9)) plt.savefig( path.join(daily_average_out_dir, '{0}_{1}_daily_average_1.png'.format(str(id), name))) monthly_avg = hd.monthly_average(merged_df) monthly_std_error = hd.monthly_std_error(merged_data=merged_df) hv.plot(merged_data_df=monthly_avg, legend=('Simulated', 'Observed'), grid=True, x_season=True, title='Monthly Average Streamflow (Standard Error) for ' + str(id) + ' - ' + name + '\n River: ' + rio + '. COMID: ' + str(comid), labels=['Datetime', 'Streamflow (m$^3$/s)'], linestyles=['b-', 'r-'], fig_size=(15, 9), ebars=monthly_std_error, ecolor=('b', 'r'), tight_xlim=False) plt.savefig( path.join(monthly_average_out_dir,