diff --git a/modules/util/util.py b/modules/util/util.py index 65a2df0bcad339306023c03d3fa055b886b34f12..6092c3b11cd00e5fd4c51c8d892e211abec4c668 100644 --- a/modules/util/util.py +++ b/modules/util/util.py @@ -291,4 +291,9 @@ def make_times(dt_str_0, dt_str_1=None, num_steps=None, days=None, hours=None, m ts_s.append(dt_obj.timestamp()) dto_last = dt_obj - return dt_obj_s, ts_s \ No newline at end of file + return dt_obj_s, ts_s + + +def make_histogram(values, edges): + h = np.histogram(values, bins=edges) + return h \ No newline at end of file