-
Notifications
You must be signed in to change notification settings - Fork 28
dataset: add MECO datasets #1054
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1054 +/- ##
===========================================
- Coverage 100.00% 99.87% -0.13%
===========================================
Files 87 91 +4
Lines 3818 3908 +90
Branches 679 683 +4
===========================================
+ Hits 3818 3903 +85
- Misses 0 4 +4
- Partials 0 1 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@dkrako don't know what is going on here...maybe you have an idea? |
possibly no wheels for |
bummer. how do we want to proceed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The descirption and the citations of the datasets are missing. Please add the python class implementation of the dataset definitions, as the datasets won't be visible in the documentation otherwise.
This error is very strange. You specified the pyreadr dependency as: Line 43 in fc7ca57
There is a windows wheel for v0.5.2: https://pypi.org/project/pyreadr/0.5.2/#files Why does pip try to build v0.5.3 instead of downloading v0.5.2? Maybe there's a command-line option for pip to resolve this in the github workflow? |
Found it: Maybe it has to be combined with Here's the line to update in the github workflow: pymovements/.github/workflows/tests.yml Line 61 in f8152b3
|
0367c54
to
a735986
Compare
a735986
to
0c6d876
Compare
this seems to work now. I'm pretty unsure about the line I've added to |
Ah great! even better to include it in |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…to dataset-mecol1w1
@dkrako in this PR we have two contributions, one are the three datasets. second is the logic to read |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a full documentation on the new functionality.
Please review the rest, I want to merge it at some point, and not account for 200 prs that happened in the meantime |
Alright, then first please incorporate the changes from: |
5a6ba35
to
80e51db
Compare
done, forced push to retrigger readthedocs which failed |
added changes as well |
precomputed_reading_measure_df = pl.read_csv(data_path, **custom_read_kwargs) | ||
elif data_path.suffix in r_extensions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please document this functionality in Dataset.load_precomputed_events()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will add it after #1099 is merged due to merge conflicts
precomputed_event_df = pl.read_csv(data_path, **custom_read_kwargs) | ||
elif data_path.suffix in r_extensions: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please document this functionality in Dataset.load_precomputed_reading_measures()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will add it after #1099 is merged due to merge conflicts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this file is a dataset related test file this should be visible in the filename.
please also make sure to not use any data from the datasets but fill it with own data.
add meco datasets, there are some
precomputed_reading_measures
missing but we can add those laterresolves #947
Type of change
✨ Enhancements
R
files📀 Datasets
How Has This Been Tested?
tests/unit/datasets/datasets_test.py::test_public_dataset_registered
forMECOL1W1
tests/unit/datasets/datasets_test.py::test_public_dataset_registered
forMECOL2W1
tests/unit/datasets/datasets_test.py::test_public_dataset_registered
forMECOL2W2
tests/unit/dataset/dataset_files_test.py::test_load_precomputed_file_unsupported_file_format
tests/unit/dataset/dataset_files_test.py::test_load_precomputed_file_rda_raise_value_error
, which fails because the'r_dataframe_key': 'joint.fix'
is not defined.tests/unit/dataset/dataset_files_test.py::test_load_precomputed_file_rda