{"id":23910065,"url":"https://github.com/sccn/eegprep","last_synced_at":"2025-04-11T11:40:36.009Z","repository":{"id":259271790,"uuid":"811149350","full_name":"sccn/eegprep","owner":"sccn","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-01T23:05:29.000Z","size":40346,"stargazers_count":3,"open_issues_count":1,"forks_count":3,"subscribers_count":7,"default_branch":"develop","last_synced_at":"2025-04-01T23:30:11.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sccn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-06T03:16:21.000Z","updated_at":"2025-04-01T23:05:32.000Z","dependencies_parsed_at":"2025-01-17T04:24:26.820Z","dependency_job_id":"b25f4612-fc6a-47d9-9305-435d7b3561c7","html_url":"https://github.com/sccn/eegprep","commit_stats":null,"previous_names":["sccn/iclabel_python","sccn/eegprep"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sccn%2Feegprep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sccn%2Feegprep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sccn%2Feegprep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sccn%2Feegprep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sccn","download_url":"https://codeload.github.com/sccn/eegprep/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248385375,"owners_count":21094873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-05T06:43:13.499Z","updated_at":"2025-04-11T11:40:36.002Z","avatar_url":"https://github.com/sccn.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Branlife execution\n\nSimply press the Execute button. The documentation below is related to the EEGprep GitHub repository.\n\n## Build docker\n\ndocker run --rm -it -v $(pwd):/usr/src/project dtyoung/eegprep /bin/bash\ndocker run -u root --rm -it -v $(pwd):/usr/src/project dtyoung/eegprep /bin/bash\n\n# remove\n\ndocker rmi dtyoung/eegprep\n\nMounted folder in /usr/src/project\n\n## How to convert a function from MATLAB to Python\n\n1. Get a MATLAB file to load and process an EEG file\n\n2. Convert the code using GPT4 or when short Copilot and test in a Notebook. Once the code runs without erroring, move to 3.\n\n3. Use the Jupyter code to create a Python file (not notebook) to load the same file as MATLAB and process it as well (in plain Python, not in a subfunction)\n\n4. Start the debugger in both and compare. Note that it is better to use the debugger on Python file than Jupyter Notebook (could not get it to stop)\n\n5. Once the result is the same, package the Python code in a function with the same name as MATLAB\n\n6. Write the function to compare (see example) and the helper Python function to load the file (note that there could be a general Python helper function)\n\n## Create package\n\n# Documentation\nhttps://packaging.python.org/en/latest/tutorials/packaging-projects/\n\n# API tokens\n- Get API token, one for official and one for test(Dung has it)\n- Twine will ask them from you\n\n# Update version\n\nChange version in pyproject.toml\n\n# Staging release\n```\npython -m build\npython -m twine upload --repository testpypi dist/*\n```\n\nto test\n```\npip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ eegprep==0.0.x\n```\n\n# Final release\n```\ntwine upload dist/*\n```\n\nto test\n\n```\npip install eegprep\n```\n\n## Install package\nPackaging was done following the tutorial: https://packaging.python.org/en/latest/tutorials/packaging-projects/ with setuptools\n\nTo install the package, run:\n```\npip install eegprep\n```\n\n## Test\n\nuse tests/main_compare.m\n\n## Versions\n\n0.1 - Initial BrainLife\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsccn%2Feegprep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsccn%2Feegprep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsccn%2Feegprep/lists"}