Skip to content

arrays_to_dict!() empty arrays not getting converted to empty dict #81

@kaarthiksundar

Description

@kaarthiksundar

This function should convert empty arrays to empty dicts but it is not doing so because of a length() != 0 filter in the if condition. Is there a specific reason for doing so?

We are doing this in GasModels explicitly in the lines https://github.com/lanl-ansi/GasModels.jl/blob/7305809e6e5a1a45f831265de70e1d6b9aae2c7d/src/io/matgas.jl#L726

@rb004f and I were thinking this should be moved to IM. Let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions