dbbs-lab / bsb-core

The Brain Scaffold Builder
https://bsb.readthedocs.io
GNU General Public License v3.0
22 stars 16 forks source link

Error with compile clear and redo option #768

Closed filimarc closed 1 year ago

filimarc commented 1 year ago

The command: bsb compile -v 3 -p --clear . gives this error: Compiling the following strategies: example_placement

Traceback (most recent call last):
  File "/home/filippo/PycharmProjects/bsb/venv/bin/bsb", line 8, in <module>
    sys.exit(handle_cli())
  File "/home/filippo/PycharmProjects/bsb/bsb/cli/__init__.py", line 10, in handle_cli
    handle_command(sys.argv[1:], exit=True)
  File "/home/filippo/PycharmProjects/bsb/bsb/cli/__init__.py", line 30, in handle_command
    namespace.handler(namespace, dryrun=dryrun)
  File "/home/filippo/PycharmProjects/bsb/bsb/cli/commands/__init__.py", line 97, in execute_handler
    self.handler(context)
  File "/home/filippo/PycharmProjects/bsb/bsb/cli/commands/_commands.py", line 137, in handler
    network.compile(
  File "/home/filippo/PycharmProjects/bsb/bsb/profiling.py", line 157, in decorated
    return f(*args, **kwargs)
  File "/home/filippo/PycharmProjects/bsb/bsb/core.py", line 354, in compile
    raise InputError(
bsb.exceptions.InputError: `clear`, `redo` and `append` are strictly boolean flags. Pass the strategies to run to the skip/only options instead.
Helveg commented 1 year ago

Please format code within code blocks, there's a button in the GitHub editor for it, and you can use three backticks: ```

I will fix it somewhere today

Helveg commented 1 year ago

Fixed :)