APSIMInitiative / ApsimX

ApsimX is the next generation of APSIM
http://www.apsim.info
Other
132 stars 161 forks source link

No csv file generated #3879

Closed byzheng closed 5 years ago

byzheng commented 5 years ago

I use command "models.exe path-apsimx-file /Csv", but no csv file generated.

byzheng commented 5 years ago

I have tracked into source codes and change function public DataStore(string fileNameToUse) (L81) for DataStore.cs.

Not sure this is the correct way to implement. It seems there are another database type firebird.

public DataStore(string fileNameToUse)
        {
            FileName = fileNameToUse;
            SQLite database = new SQLite();
            database.OpenDatabase(fileName, true);
            connection = database;
            dbReader.SetConnection(connection);
            dbWriter.SetConnection(connection);
        }
hol353 commented 5 years ago

Yes that looks OK to me. Raise a pull request.