Skip to content

Commit

Permalink
type hint & comment clarification
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Mar 19, 2024
1 parent 69fdabc commit b9fb55e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bsb/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def from_content(self, content, path=None):
parser, tree, meta = _try_parsers(content, self._parser_classes, ext, path=path)
return _from_parsed(self, parser, tree, meta, path)

def format_content(self, parser_name, config):
def format_content(self, parser_name: str, config: "Configuration"):
"""
Convert a configuration object to a string using the given parser.
"""
Expand Down
7 changes: 6 additions & 1 deletion bsb/connectivity/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ class Hemitype:
call_default=False,
default=(lambda ps: ps.load_morphologies()),
)
"""Function to load the morphologies (MorphologySet) from a PlacementSet"""
"""
Function to load the morphologies (MorphologySet) from a PlacementSet. This override
can allow temporary dynamic morphology generation during the connectivity phase, from
a much smaller, or empty, MorphologySet. It is useful for example when the task would
take too much disk space or time otherwise.
"""


class HemitypeCollection:
Expand Down

0 comments on commit b9fb55e

Please sign in to comment.