Skip to content
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

docs: New documentation #858

Merged
merged 76 commits into from
Jan 7, 2025
Merged

docs: New documentation #858

merged 76 commits into from
Jan 7, 2025

Conversation

filimarc
Copy link
Contributor

@filimarc filimarc commented Jun 26, 2024

Describe the work done

Update documentation to BSB versions 4.x
Fix BSB CLI

Issues related

Close #904 #897

Tasks

  • Updated documentation
  • Add tests for projects

📚 Documentation preview 📚: https://bsb--858.org.readthedocs.build/en/858/

Copy link
Contributor

@Helveg Helveg left a comment

Choose a reason for hiding this comment

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

All of the proposed changes contain somewhat broken English ❤️ Can you run it through chatgpt to correct your modifications?

docs/connectivity/defining.rst Show resolved Hide resolved
@filimarc filimarc marked this pull request as draft July 15, 2024 14:14
@Helveg
Copy link
Contributor

Helveg commented Jul 15, 2024

Oh, also please either fill out the PR description, or remove the template. You linked issues 1, 2 and 3 ;)

Copy link
Contributor

@Helveg Helveg left a comment

Choose a reason for hiding this comment

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

@filimarc run all these sentences through ChatGPT asking it to correct spelling, grammar, and to align the writing style with technical writing for technical documentation.

docs/getting-started/getting-started.rst Outdated Show resolved Hide resolved
docs/getting-started/include_morphos.rst Outdated Show resolved Hide resolved
docs/morphologies/intro.rst Outdated Show resolved Hide resolved
docs/placement/intro.rst Outdated Show resolved Hide resolved
docs/placement/placement-strategies.rst Outdated Show resolved Hide resolved
docs/topology/partitions.rst Outdated Show resolved Hide resolved
docs/topology/partitions.rst Outdated Show resolved Hide resolved
docs/topology/partitions.rst Outdated Show resolved Hide resolved
docs/topology/regions.rst Outdated Show resolved Hide resolved
docs/topology/regions.rst Outdated Show resolved Hide resolved
docs/topology/regions.rst Outdated Show resolved Hide resolved
docs/topology/regions.rst Outdated Show resolved Hide resolved
docs/placement/intro.rst Outdated Show resolved Hide resolved
Helveg

This comment was marked as duplicate.

@filimarc filimarc changed the title New documentation docs: New documentation Sep 16, 2024
Copy link

codecov bot commented Sep 16, 2024

Codecov Report

Attention: Patch coverage is 55.88235% with 15 lines in your changes missing coverage. Please review.

Project coverage is 89.06%. Comparing base (ab77c6f) to head (047f1f5).
Report is 8 commits behind head on main.

Files with missing lines Patch % Lines
bsb/cli/commands/_commands.py 40.00% 6 Missing ⚠️
bsb/config/_distributions.py 50.00% 5 Missing ⚠️
bsb/topology/partition.py 33.33% 2 Missing ⚠️
bsb/cli/commands/_projects.py 0.00% 1 Missing ⚠️
bsb/placement/indicator.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #858      +/-   ##
==========================================
- Coverage   89.09%   89.06%   -0.03%     
==========================================
  Files         110      110              
  Lines       15164    15231      +67     
==========================================
+ Hits        13510    13566      +56     
- Misses       1654     1665      +11     

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

@drodarie drodarie requested a review from Helveg November 14, 2024 15:20
@drodarie
Copy link
Contributor

We should start a new batch of review right away since there are a lot to check and we would like to merge it as soon as possible as new users will probably use the tool soon (Erice school).

@drodarie drodarie merged commit 462fe9a into main Jan 7, 2025
10 checks passed
@drodarie drodarie deleted the New_docs branch January 7, 2025 08:06
Copy link
Contributor

@Helveg Helveg left a comment

Choose a reason for hiding this comment

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

I still had this pending :)

@@ -222,7 +231,7 @@ def get_options(self):
def add_parser_arguments(self, parser):
parser.add_argument("network")
parser.add_argument("simulation")
parser.add_argument("-o", "--output")
parser.add_argument("-o", "--output_folder")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
parser.add_argument("-o", "--output_folder")
parser.add_argument("-o", "--output-folder")

I think the CLI is kebab cased

parameters: dict[str, typing.Any] = config.catch_all(type=types.any_())
"""parameters to pass to the distribution"""
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"""parameters to pass to the distribution"""
"""Parameters to pass to the distribution"""

@@ -778,7 +796,7 @@ def create_job_pool(self, fail_fast=None, quiet=False):
)
try:
# Check whether stdout is a TTY, and that it is larger than 0x0
# (e.g. MPI sets it to 0x0 unless an xterm is emulated.
# (e.g. MPI sets it to 0x0 unless a xterm is emulated.
Copy link
Contributor

Choose a reason for hiding this comment

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

It is "an xterm," because the choice between "a" and "an" depends on the sound that follows, not the written letter. Since "xterm" is pronounced with an initial vowel sound ("exterm"), "an" is correct.

Comment on lines +32 to +33
Parameters
----------
Copy link
Contributor

Choose a reason for hiding this comment

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

That's not part of the docstring syntax we use

@@ -82,7 +82,7 @@ def pick(self, morphology):

@config.node
class NeuroMorphoSelector(NameSelector, classmap_entry="from_neuromorpho"):
_url = "https://neuromorpho.org/"
_url = "http://cng.gmu.edu:8080/neuroMorpho/" # "https://neuromorpho.org/"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you change this? neuromorpho.org still seems to be working?


.. rubric:: Parametrization
For each component, BSB provides interfaces, each with a set of functions that you must
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
For each component, BSB provides interfaces, each with a set of functions that you must
For each component, the BSB provides interfaces, each with a set of functions that you must


.. rubric:: Parametrization
For each component, BSB provides interfaces, each with a set of functions that you must
implement. If these functions are present, the framework knows how to use your class.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
implement. If these functions are present, the framework knows how to use your class.
implement. By implementing these functions the framework can seamlessly integrate your custom components
into a BSB workflow. Neat!


Parameters defined as class attributes --> can be specified in config/init. Make things
explicitly visible and settable.
Hence, the framework allows you to plug in user code pretty much anywhere. Neat.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Hence, the framework allows you to plug in user code pretty much anywhere. Neat.

@@ -79,6 +79,7 @@
"mpi4py": ("https://mpi4py.readthedocs.io/en/stable/", None),
"arbor": ("https://docs.arbor-sim.org/en/latest/", None),
"neo": ("https://neo.readthedocs.io/en/latest/", None),
"bsb": ("https://bsb.readthedocs.io/en/latest", None),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why ref itself?

print("We only store referrers coming from a .square configuration attribute")

todo: Mention ``pop_unique``

Copy link
Contributor

Choose a reason for hiding this comment

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

Where did all this go?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Undefined Function 'copy_template()' in CLI Command 'bsb new' Causes Project Creation Failure
3 participants