MAINT: Deprecate txt
data format in favor of csv
(or tsv
)
#949
Labels
Milestone
txt
data format in favor of csv
(or tsv
)
#949
Currently, the GUI outputs (dipole) simulation data ONLY into
csv
files, but theDipole
class outputs data ONLY to either customtxt
orhdf5
files.Subtasks:
txt
as a format entirely. Regardless of our eventual support forhdf5
, we should transition to only outputting eithercsv
ortsv
in place oftxt
. See reasons below.Motivation
txt
is a holdover from the original HNN-legacy version, buttxt
is a vague file format that is not descriptive about its contents.txt
format. The original HNN-legacytxt
files have some description on this page https://jonescompneurolab.github.io/hnn-tutorials/gui/tour_gui under section Setting Parameters and Saving Model Data on Your Computer, reproduced here (emphasis mine):In contrast,
txt
files output by HNN-Core’sDipole.write()
(here https://github.com/jonescompneurolab/hnn-core/blob/master/hnn_core/dipole.py#L673-L678 ) use a different columnar format (reproduced here):hdf5
, I still think that we should retain the option to output plain-text data.hdf5
has its own learning curve, especially for newcomers, whilecsv
is very common. In workshops, we may want to stick with plain-text output for this reason.txt
files)Dipole.write()
function outputs ourtxt
file but claims it is a tab-separated file. If we wanted to keep using tab-separated data (instead of comma-separated), then we should still switch to thetsv
format. This would allow us to use a file that indicates its setup, but also enables us to use headers for the columns.The text was updated successfully, but these errors were encountered: