Fusion-Power-Plant-Framework/bluemira

write_csv function only provides column names if metadata is given

kj5248 opened this issue · 0 comments

Describe the bug

If when using write_csv you include col_names this will only be added if metadata is also given.

Steps to reproduce

Just use write_csv function with and without metadata.

write_csv(data=data, base_name=filename, col_names=["a", "b", "c"])

This produces just the data

write_csv(data=data, base_name=filename, col_names=["a", "b", "c"], metadata="Data")

This adds metadata tag, followed by column headers and then data