In Example 1 the default file_name is not correctly generating. If I manually set file_name to 'Qd_weibull_max_nonst_1_sinusoidal_10_SLSQP' in params it runs.
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
Cell In[16], [line 1](vscode-notebook-cell:?execution_count=16&line=1)
----> [1](vscode-notebook-cell:?execution_count=16&line=1) analysis.marginalfit(data, params)
File C:\checkouts\branches\python\klandon\In-progress\marinetools-main\src\marinetools\temporal\analysis.py:280, in marginalfit(df, parameters)
[277](file:///C:/checkouts/branches/python/klandon/In-progress/marinetools-main/src/marinetools/temporal/analysis.py:277) filename += "_" + str(parameters["basis_function"]["degree"])
[278](file:///C:/checkouts/branches/python/klandon/In-progress/marinetools-main/src/marinetools/temporal/analysis.py:278) filename += "_" + parameters["optimization"]["method"]
--> [280](file:///C:/checkouts/branches/python/klandon/In-progress/marinetools-main/src/marinetools/temporal/analysis.py:280) filename = parameters["folder_name"] + parameters['file_name']
[281](file:///C:/checkouts/branches/python/klandon/In-progress/marinetools-main/src/marinetools/temporal/analysis.py:281) parameters["file_name"] = filename
[283](file:///C:/checkouts/branches/python/klandon/In-progress/marinetools-main/src/marinetools/temporal/analysis.py:283) save.to_json(parameters, parameters["file_name"])
KeyError: 'file_name'
In Example 1 the default file_name is not correctly generating. If I manually set file_name to 'Qd_weibull_max_nonst_1_sinusoidal_10_SLSQP' in params it runs.