gama-platform / gama.old

Main repository for developing the 1.x versions of GAMA
GNU General Public License v3.0
304 stars 99 forks source link

csv to excel or a delimiter in save statement #2452

Closed sriramab closed 1 year ago

sriramab commented 6 years ago

Hi

I get many requests to be able to save to excel file. I know csv can be imported to excel, but sometimes when saving csv and storing a list into csv gives conflict with comma separation with list items.

May be easier introduce a delimiter to the save statement as it is in the csv read operator? So if i specify a delimiter of my choice say ; instead of , then the problem with lists and lists of lists can be resolved.

thank you Srirama

AlexisDrogoul commented 6 years ago

Hi, instead of adding more and more facets to the already bloated save statement, you might want to motivate @gama-platform/core (GAMA developers) to develop the 'flushBuffer()' method in GamaCSVFile so that all the existing infrastructure for reading can be reused for writing... :)

AlexisDrogoul commented 6 years ago

Tracked under #1362.

AlexisDrogoul commented 2 years ago

Reopening this issue for the next round of development on GAMA 2.0

AlexisDrogoul commented 1 year ago

In GAMA 1.9.2, the separator can now be set as a preference, enabling it to be set for a model with gama.pref_csv_separator <- ';' for instance. I think this answers the request !