Hello Mahdi,
Sorry, I don't understand what you are trying to achieve. This seems awfully complicated and inefficient indeed because saving a multi-dimensional table to a .csv file is normally as simple as:
csv(my_table_or_array, fname='my_filename.csv')
I guess there is something I am missing. Could you provide a self-contained (runnable) example reproducing the kind of problem you are having?
Keeping the csv file open is not possible at the moment.
Gaëtan
--
You received this message because you are subscribed to the Google Groups "liam2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
liam2-users...@googlegroups.com.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/liam2-users/CA%2BAkwSd1wZ303yW7%3Dji%3DfzMp8jFwRKkSagcqaR6bkquW_%2BS-yg%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/liam2-users/AM6P194MB037576A62152EFBB1FF19541AE9A0%40AM6P194MB0375.EURP194.PROD.OUTLOOK.COM.
Ah, ok… Creating such arrays "cell by cell" is not possible at the moment.
Gaëtan
To view this discussion on the web, visit https://groups.google.com/d/msgid/liam2-users/CA%2BAkwSfnokwH3%3Dm4eu%3DgJsst2KKpv7_wMRcSQuO9xfwD16fjgQ%40mail.gmail.com.
For what it's worth, I just implemented something akin to "setitem" on any entity variable to set subsets of variables instead of whole columns. This lives in the devel branch (I hope to merge it to master "soonish").
You will now be able to write:
my_array[subset]: value
Note that it does not work (yet) for global arrays (and I am unsure how hard it will be to implement this, so I don't know if it will make it to 0.13) and the array needs to exist beforehand.
Gaëtan
To view this discussion on the web, visit https://groups.google.com/d/msgid/liam2-users/AM6P194MB0375A5A06E9E6AA405012200AE9A0%40AM6P194MB0375.EURP194.PROD.OUTLOOK.COM.