Conversation
Correct bug on the parameter definition in the jupyter notebook tutorial
terhorstd
left a comment
There was a problem hiding this comment.
Appologies, clicked the wrong accept button...
approval was only for the visible subset of the last change
|
This is getting quite a big PR. Could you add a description at the top to summarize in a few bullet-points what needed to change? Not the technical details, but structurally where things can be found after the merge, or which dev-features were added. |
I added a description to this PR. Check if you agree @babsey |
|
The PR description looks fine to me. Thanks @shimoura ! |
|
@terhorstd friendly reminder! |
|
@terhorstd Friendly reminder for the review. I would like to test the offical HUMAM package for NEST Desktop before Hackathon in December. |
terhorstd
left a comment
There was a problem hiding this comment.
Mostly code-quality comments. Consider using tools like isort, black, flake8, mypy, etc.
| 6. Congratulations! Now you can run the model. Enjoy!<br> To run the model, click the `Run` on the title bar and choose `Run All Cells`. It takes several minutes until you get all results.<br> | ||
| **Please note**: every time you click the `Try it on EBRAINS` button, the repository is loaded into your home directory on EBRAINS Lab and it overrides your old repository with the same name. Therefore, make sure you follow the [Fork the repository and save your changes](#fork-the-repository-and-save-your-changes) if you make changes and want to save them. | ||
| 3. If you’re using EBRAINS for the first time, click `Sign in with GenericOAuth2` to sign in on EBRAINS. To do this, you | ||
| need an EBRAINS account. |
There was a problem hiding this comment.
| need an EBRAINS account. | |
| need an [EBRAINS account](https://ebrains.eu/register). |
README.md
Outdated
|
|
||
| #### Try it on EBRAINS | ||
| 1. Click [Try it on EBRAINS](https://lab.ebrains.eu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2FINM-6%2Fhuman-multi-area-model.git&urlpath=lab%2Ftree%2Fhuman-multi-area-model.git%2Fhumam_tutorial.ipynb&branch=main). If any error or unexpected happens during the following process, please close the browser tab and restart the [User instruction](https://lab.ebrains.eu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fshimoura%2Fhuman-multi-area-model.git&urlpath=lab%2Ftree%2Fhuman-multi-area-model.git%2Fhumam_tutorial.ipynb&branch=add-downscaling-factor) process again. | ||
| 1. Click [Try it on EBRAINS](https://lab.ebrains.eu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2FINM-6%2Fhuman-multi-area-model.git&urlpath=lab%2Ftree%2Fhuman-multi-area-model.git%2Fhumam_tutorial.ipynb&branch=main). If any error or unexpected happens during the following process, please close the browser tab and restart the |
There was a problem hiding this comment.
This is fine for main, but remember to put a note in your release process to change the branch=main to the release tag once you split of a release candidate branch.
| @@ -0,0 +1 @@ | |||
| from . import connectivity, cytoarchitecture | |||
There was a problem hiding this comment.
Check if this could better be
| from . import connectivity, cytoarchitecture | |
| __all__ = ["connectivity", "cytoarchitecture"] |
| N_syn_ext : DataFrame | ||
| Population resolved internal syapse numbers. | ||
| """ | ||
| from itertools import product |
src/humam/network.py
Outdated
| import os | ||
| import yaml | ||
| import pandas as pd | ||
|
|
src/humam/simulation.py
Outdated
| from datetime import datetime | ||
|
|
src/humam/simulation.py
Outdated
| from dicthash import dicthash | ||
|
|
src/humam/simulation.py
Outdated
| import yaml | ||
|
|
src/humam/simulation.py
Outdated
| import os | ||
| import yaml | ||
|
|
Add pre-commit validation
Co-authored-by: Dennis Terhorst <terhorstd@users.noreply.github.com>
Refactoring Summary
This pull request implements a major reorganization of the repository to improve code structure, modularity, and maintainability. The main changes are:
Python Package Structure:
All core simulation and analysis code is now structured as a Python package under
src/humam/. This includes classes for network setup, simulation, and analysis, as well as parameter definitions and auxiliary scripts. Submodules are introduced for parameters, data loading, preprocessing, helpers, figures, theory, and workflow automation.Separation of Publication Scripts:
Scripts specifically used to generate figures for the publication have been moved to
misc/publication_figures/, clearly separating them from the core simulation code.Jupyter Notebook Updates:
The main tutorial notebook (
humam_tutorial.ipynb) has been updated to import from the newhumampackage, using consistent and clear import paths.Workflow and File Organization:
Snakemake workflow scripts are now located under
src/humam/snakemake/. TheSnakefileand other workflow definitions have been updated accordingly..gitignoreand documentation files (README.md,misc/README.md) are updated to reflect the new structure.General Cleanup:
Redundant scripts and files are either moved to appropriate subdirectories or removed. The overall repository layout is clarified, with directory structures and file responsibilities now better documented.
These changes enable easier installation and usage as a Python package, and clarify the distinction between reusable simulation tools and manuscript-specific scripts.