parse_args in jupyter notebook raises exeption Exception: command-line argument '-f' does not have form key=value
executing following commands in jupyter notebook:
from bornagain import ba_plot as bp
bp.parse_args(sim_n=200)
raises following exception:
---------------------------------------------------------------------------
Exception Traceback (most recent call last)
Cell In[7], line 2
1 nbins=200
----> 2 bp.parse_args(sim_n=nbins)
3 #(default) parameters
4 CrossCorrLength=100 #rough layers, cross correlation length
File ~\AppData\Local\Programs\Python\Python39\lib\site-packages\bornagain\ba_plot.py:377, in parse_args(**kwargs)
375 s = arg.split("=")
376 if len(s) != 2:
--> 377 raise Exception(
378 f"command-line argument '{arg}' does not have form key=value"
379 )
380 try:
381 tmp[s[0]] = int(s[1])
Exception: command-line argument '-f' does not have form key=value
Edited by philipp.wieser