astronomy-commons / hipscat-import

HiPSCat import - generate HiPSCat-partitioned catalogs
https://hipscat-import.readthedocs.io
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Issue writing provenance info for combination of arguments #342

Closed delucchi-cmu closed 1 month ago

delucchi-cmu commented 1 month ago

Bug report

With the following combination of arguments, there is an issue at the end of an import pipeline:

        file_reader=CsvReader(
            header=None,
            schema_file=schema_file,

Error message:

  File "/astro/users/mmd11/.conda/envs/importenv/lib/python3.10/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type Index is not JSON serializable

This is because of the runtime_args.file_reader_info.kwargs.names attribute.