# Path: ifcb/tests/data/fileset_info.py
# def list_test_bins():
#     return list(_dd())
# 
# def get_fileset_bin(lid):
#     return _dd()[lid]
# 
# Path: ifcb/data/hdr.py
# TEMPERATURE = 'temperature'
# 
# HUMIDITY = 'humidity'
# 
# Path: ifcb/tests/metrics/test_ml_analyzed.py
# TARGET_ML_ANALYZED = {
#     'IFCB5_2012_028_081515': (0.003391470833333334, 0.8139530000000001, 1.251953),
#     'D20130526T095207_IFCB013': (5.080841170833334, 1219.401881, 1231.024861)
# }


import unittest
import numpy as np
from ifcb.tests.data.fileset_info import list_test_bins, get_fileset_bin
from ifcb.data.hdr import TEMPERATURE, HUMIDITY
from .test_ml_analyzed import TARGET_ML_ANALYZED




TARGET_METRICS = {
    'IFCB5_2012_028_081515': {
        'ml_analyzed': 0.0033914708,
        'run_time': 1.251953,
        'look_time': 0.813953,
        'inhibit_time': 0.438,
        'trigger_rate': 4.792512178971575,
        TEMPERATURE: 11.4799732421875,
        HUMIDITY:  32.167437512207,
    },
    'D20130526T095207_IFCB013': {
        'ml_analyzed': 5.0808411708,
        'run_time': 1231.024861,
        'look_time': 1219.401881,
        'inhibit_time': 11.62298,
        'trigger_rate': 0.09585509093954846,
        TEMPERATURE: 35.270397,

# Path: ifcb/tests/data/fileset_info.py
# def list_test_bins():
#     return list(_dd())
# 
# def get_fileset_bin(lid):
#     return _dd()[lid]
# 
# Path: ifcb/data/hdr.py
# TEMPERATURE = 'temperature'
# 
# HUMIDITY = 'humidity'
# 
# Path: ifcb/tests/metrics/test_ml_analyzed.py
# TARGET_ML_ANALYZED = {
#     'IFCB5_2012_028_081515': (0.003391470833333334, 0.8139530000000001, 1.251953),
#     'D20130526T095207_IFCB013': (5.080841170833334, 1219.401881, 1231.024861)
# }


# Path: ifcb/tests/metrics/test_bin_metrics.py
import unittest
import numpy as np
from ifcb.tests.data.fileset_info import list_test_bins, get_fileset_bin
from ifcb.data.hdr import TEMPERATURE, HUMIDITY
from .test_ml_analyzed import TARGET_ML_ANALYZED





TARGET_METRICS = {
    'IFCB5_2012_028_081515': {
        'ml_analyzed': 0.0033914708,
        'run_time': 1.251953,
        'look_time': 0.813953,
        'inhibit_time': 0.438,
        'trigger_rate': 4.792512178971575,
        TEMPERATURE: 11.4799732421875,
        HUMIDITY:  32.167437512207,
    },
    'D20130526T095207_IFCB013': {
        'ml_analyzed': 5.0808411708,
        'run_time': 1231.024861,
        'look_time': 1219.401881,
        'inhibit_time': 11.62298,
        'trigger_rate': 0.09585509093954846,
        TEMPERATURE: 35.270397,

        HUMIDITY: 2.48685,