Skip to content

Fix tests - #228

Merged
caglorithm merged 6 commits into
masterfrom
fix/tests
Nov 3, 2022
Merged

caglorithm merged 6 commits into
masterfrom
fix/tests

Conversation

@jajcayn

@jajcayn jajcayn commented Nov 2, 2022

Copy link
Copy Markdown
Collaborator

The title says it all.
Anyway, @caglorithm, we should discuss maybe dropping support for lower python than 3.8.. The thing is, xarray did drop the support for 3.7 (and obviously for 3.6) some time ago (pydata/xarray#7149 (comment)), so now loading .nc files (in Signal class, as done in example-3) requires hacky workaround - we need to downgrade importlib-metadata (dependency of xarray)...
The problem, of course, is that due to pypet, only python 3.6 and 3.7 work on macOS... so dropping support for 3.6 and 3.7 would mean dropping support for macOS :/ Or, getting rid of pypet...
But for now, tests should work...

@lenasal after this is merged, please rebase your PR onto the new master; then it should work for you:)

@codecov

codecov Bot commented Nov 2, 2022 •

Copy link
Copy Markdown

Codecov Report

Base: 94.96% // Head: 93.54% // Decreases project coverage by -1.42% ⚠️

Coverage data is based on head (33877d3) compared to base (0db88b5).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #228      +/-   ##
==========================================
- Coverage   94.96%   93.54%   -1.42%     
==========================================
  Files          51       51              
  Lines        4427     4427              
==========================================
- Hits         4204     4141      -63     
- Misses        223      286      +63     
Flag Coverage Δ
unittests 93.54% <ø> (-1.42%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
neurolib/utils/functions.py 75.47% <ø> (-0.94%) ⬇️
neurolib/optimize/exploration/exploration.py 82.33% <0.00%> (-13.91%) ⬇️
neurolib/optimize/evolution/evolution.py 88.10% <0.00%> (-3.97%) ⬇️
neurolib/models/model.py 91.15% <0.00%> (-3.85%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@caglorithm

Copy link
Copy Markdown
Member

MVP! Thank you @jajcayn very much needed :)

@caglorithm

Copy link
Copy Markdown
Member

I agree, let's drop support for anything < 3.8

@caglorithm
caglorithm merged commit 74a057f into master Nov 3, 2022
@caglorithm
caglorithm deleted the fix/tests branch November 3, 2022 08:54
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.

2 participants