Skip to content

Commit 4ce5903

Browse files
committed
chore: add name check for dataframes
1 parent 1f07a02 commit 4ce5903

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/optimagic/parameters/tree_registry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def _unflatten_df_optree(aux_data, leaves):
182182
sr.tolist(),
183183
{"index": sr.index, "name": sr.name},
184184
list(sr.index.map(_index_element_to_string)),
185+
_get_names_pandas_dataframe(sr),
185186
),
186187
lambda aux_data, leaves: pd.Series(leaves, **aux_data),
187188
namespace=extended_namespace,

0 commit comments

Comments
 (0)