BlueBrain / MVDTool

Parser and command line tool for MVD file format
Other
2 stars 5 forks source link

Skip trailing spaces while loading tsv file #84

Closed WeinaJi closed 4 years ago

WeinaJi commented 4 years ago

While loading mvd3 file in blueconfigs/hip-v6 test,

/gpfs/bbp.cscs.ch/project/proj42/circuits/rat.CA1/20180309/circuit.mvd3
/gpfs/bbp.cscs.ch/project/proj42/entities/emodels/20180216/mecombo_emodel.tsv

the tsv file contains spaces at the end of each line, leading to error in mvdtool.open_combo_tsv()

node_reader.open_combo_tsv(combo_file)
RuntimeError: Error in /gpfs/bbp.cscs.ch/project/proj42/entities/emodels/20180216/mecombo_emodel.tsv line 1: Unexpected 7 fields. Expecting 6 (Currents = 0) or 8

MVDTool should protect this case and ignore spaces in tsv file.

WeinaJi commented 4 years ago

PR is merged