Skip to content

Conversation

@christian-oreilly
Copy link
Member

Our default configuration came from the EEG-IP project. This project is in infants which have notoriously noisy data. These parameters are not optimal for adult defaults and the default configuration should not be for such a specific population. This PR creates two configs, one for adults and one for infants. It provides the capability to load the infant default config, but if nothing is specified, it will load the adult default config. It also cleans up some unused arguments in these config files.

@christian-oreilly christian-oreilly self-assigned this Nov 9, 2024
@codecov
Copy link

codecov bot commented Nov 9, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 71.90%. Comparing base (0cc087b) to head (cf926a9).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pylossless/config/config.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #173      +/-   ##
==========================================
- Coverage   71.93%   71.90%   -0.04%     
==========================================
  Files          22       22              
  Lines        1176     1178       +2     
==========================================
+ Hits          846      847       +1     
- Misses        330      331       +1     

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

Copy link
Member

@scott-huberty scott-huberty left a comment

Choose a reason for hiding this comment

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

Thanks @christian-oreilly !!!

with pytest.raises(ImportError, match="Missing optional dependency 'astropy'."):
# choosing a package that will probably never be added to the requirements!
check.import_optional_dependency("astropy")
package = "sdgssfersfsdesdfsefsdfsdt"
Copy link
Member

Choose a reason for hiding this comment

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

aha nice ; )

@scott-huberty scott-huberty merged commit b3a481b into main Nov 10, 2024
8 checks passed
@christian-oreilly christian-oreilly deleted the adult_default branch December 13, 2024 16:10
Andesha pushed a commit to Andesha/pylossless that referenced this pull request Mar 31, 2025
…ina-usc#173)

* Updating the default config to be compatible with adult recordings.

* Code linting.

* Fixing tests.

* Fixing spelling.

* Fixing simulation test.
Andesha pushed a commit to Andesha/pylossless that referenced this pull request Apr 1, 2025
…ina-usc#173)

* Updating the default config to be compatible with adult recordings.

* Code linting.

* Fixing tests.

* Fixing spelling.

* Fixing simulation test.
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.

3 participants