Skip to content
Snippets Groups Projects
  • Stefan Reck's avatar
    6dea7902
    Breaking changes: · 6dea7902
    Stefan Reck authored
    - orcasong is now called legacy
    - orcasong_2 is now called orcasong
    
    Other changes:
    - Added one line 2017 bin edges to repo
    - added unittests
    - added versioning for files created with orcasong
    - Expanded doc
    - Added check to calib if calib has been done to file already
    6dea7902
    History
    Breaking changes:
    Stefan Reck authored
    - orcasong is now called legacy
    - orcasong_2 is now called orcasong
    
    Other changes:
    - Added one line 2017 bin edges to repo
    - added unittests
    - added versioning for files created with orcasong
    - Expanded doc
    - Added check to calib if calib has been done to file already
test_bin_edges.py 531 B
import inspect
from unittest import TestCase
import orcasong.bin_edges
from orcasong.core import FileBinner


__author__ = 'Stefan Reck'


class TestEdges(TestCase):
    """
    Just call all functions in the bin_edges module and see if they work
    with the filebinner.
    """
    def test_them(self):
        funcs = [memb[1] for memb in inspect.getmembers(orcasong.bin_edges)
                 if inspect.isfunction(memb[1])]

        for func in funcs:
            fb = FileBinner(func())
            fb.get_names_and_shape()