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

Test MNE can read our exports #71

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Test MNE can read our exports #71

wants to merge 9 commits into from

Conversation

ericphanson
Copy link
Member

This adds a bunch of test-only dependencies but no runtime deps. This also has no source code changes.

test/runtests.jl Outdated Show resolved Hide resolved
Copy link
Member

@kleinschmidt kleinschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

teh PR itself looks good but python stuff is failing on nightly for some reason. micromamba seems unhappy. I dunno whether it's worth incurring the additional test dependency on what is generally a flaky thing...

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@codecov-commenter
Copy link

codecov-commenter commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.57%. Comparing base (e11166e) to head (b62e8f8).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #71      +/-   ##
==========================================
- Coverage   95.59%   95.57%   -0.02%     
==========================================
  Files           4        3       -1     
  Lines         295      294       -1     
==========================================
- Hits          282      281       -1     
  Misses         13       13              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@testset "Exports readable by MNE" begin
edf = EDF.read(joinpath(DATADIR, "test_float_extrema.edf"))
@test edf.signals[1].header.digital_minimum ≈ -32767.0f0
edf = @set edf.signals[1].header.digital_minimum = -32767 * 2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what the purpose of this is. If it's necessary for testing a particular behavior, can you add a comment? I think it's the only use of Accessors here so if it's not actually necessary then dropping it would reduce the number of test dependencies.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this PR was meant to complement #72 which uses Accessors more extensively in the tests

however I no longer remember what the point of this line is anymore :/

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

Successfully merging this pull request may close these issues.

4 participants