Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add test for 2016 testing the content #97

Closed
maxnoe opened this issue Dec 6, 2018 · 2 comments
Closed

add test for 2016 testing the content #97

maxnoe opened this issue Dec 6, 2018 · 2 comments

Comments

@maxnoe
Copy link
Member

maxnoe commented Dec 6, 2018

No description provided.

@dneise
Copy link
Member

dneise commented Feb 20, 2019

some tests were added in 0.17.0

def test_2016():
    from eventio.simtel.objects import PixelTiming

    with EventIOFile(prod4b_sst1m_file) as f:
        for obj in yield_n_and_assert(f, PixelTiming, n=15):
            timing = parse_and_assert_consumption(obj, limit=3)

            time = timing['time'][:, 0]
            pixels = timing['pixel_list']

            if timing['list_type'] == 1:
                mask = np.isfinite(time)
                assert mask.sum() == len(timing['pixel_list'])
                assert not np.any(np.isnan(time[pixels]))

is that enough?

@maxnoe
Copy link
Member Author

maxnoe commented Feb 20, 2019

For now, it might be.

@maxnoe maxnoe closed this as completed Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants