internal static void Save()

in Chemistry/src/Tools/Convert.cs [90:115]


        internal static void Save(IEnumerable<ElectronicStructureProblem> data, TextWriter writer, SerializationFormat to)
        {
            switch (to)
            {
                case SerializationFormat.Broombridge:
                    // Check if the data has any nontrivial initial state suggestions, since
                    // those are currently unsupported for export.
                    if (data.Any(problem => (problem.InitialStates?.Count ?? 0) > 0))
                    {
                        Console.Error.WriteLine("[WARNING] Serialization of initial states is not currently supported.");
                    }
                    BroombridgeSerializer.Serialize(writer, data);
                    return;
                case SerializationFormat.LiQuiD:
                    throw new NotSupportedException("Not yet implemented.");
                    return;
                case SerializationFormat.FciDump:
                    FciDumpSerializer.Serialize(
                        writer, data
                    );
                    return;
                default:
                    throw new ArgumentException($"Invalid format {to}.");
                    return;
            };
        }