# Path: ifcb/tests/data/fileset_info.py
# def list_test_bins():
#     return list(_dd())
# 
# def get_fileset_bin(lid):
#     return _dd()[lid]
# 
# Path: ifcb/metrics/ml_analyzed.py
# def compute_ml_analyzed(abin):
#     """returns ml_analyzed, look time, run time"""
#     s = abin.schema
#     if s is SCHEMA_VERSION_1:
#         return compute_ml_analyzed_s1(abin)
#     elif s is SCHEMA_VERSION_2:
#         return compute_ml_analyzed_s2(abin)


import unittest
import numpy as np
from ifcb.tests.data.fileset_info import list_test_bins, get_fileset_bin
from ifcb.metrics.ml_analyzed import compute_ml_analyzed




TARGET_ML_ANALYZED = {
    'IFCB5_2012_028_081515': (0.003391470833333334, 0.8139530000000001, 1.251953),
    'D20130526T095207_IFCB013': (5.080841170833334, 1219.401881, 1231.024861)
}

class TestMlAnalyzed(unittest.TestCase):
    def test_ml_analyzed(self):

# Path: ifcb/tests/data/fileset_info.py
# def list_test_bins():
#     return list(_dd())
# 
# def get_fileset_bin(lid):
#     return _dd()[lid]
# 
# Path: ifcb/metrics/ml_analyzed.py
# def compute_ml_analyzed(abin):
#     """returns ml_analyzed, look time, run time"""
#     s = abin.schema
#     if s is SCHEMA_VERSION_1:
#         return compute_ml_analyzed_s1(abin)
#     elif s is SCHEMA_VERSION_2:
#         return compute_ml_analyzed_s2(abin)


# Path: ifcb/tests/metrics/test_ml_analyzed.py
import unittest
import numpy as np
from ifcb.tests.data.fileset_info import list_test_bins, get_fileset_bin
from ifcb.metrics.ml_analyzed import compute_ml_analyzed





TARGET_ML_ANALYZED = {
    'IFCB5_2012_028_081515': (0.003391470833333334, 0.8139530000000001, 1.251953),
    'D20130526T095207_IFCB013': (5.080841170833334, 1219.401881, 1231.024861)
}

class TestMlAnalyzed(unittest.TestCase):
    def test_ml_analyzed(self):

        for b in list_test_bins():