keurfonluu / toughio

Pre- and post-processing Python library for TOUGH
Other
59 stars 9 forks source link

Read and show connections #167

Open plussss190 opened 6 months ago

plussss190 commented 6 months ago

I am trying to extract data related to connections from output file of TOUGH2.0/PetraSim. And after that I want to visualize these data as vector in ParaView. I don't know if I can do it with toughio, or is there any better way?

File: Sensitivity.txt (I change extension as .txt for upload)

Command: toughio-extract -c Sensitivity.out MESH

Error code: Traceback (most recent call last): File "runpy.py", line 194, in _run_module_as_main File "runpy.py", line 87, in _run_code File "C:\Users\Tsukiite\AppData\Roaming\Python\Python38\Scripts\toughio-extract.exe__main__.py", line 7, in File "C:\Users\Tsukiite\AppData\Roaming\Python\Python38\site-packages\toughio_cli_extract.py", line 43, in extract output = read_output(args.infile, connection=args.connection) File "C:\Users\Tsukiite\AppData\Roaming\Python\Python38\site-packages\toughio_io\output_helpers.py", line 96, in read return _reader_map[file_format](filename, file_type, labels_order) File "C:\Users\Tsukiite\AppData\Roaming\Python\Python38\site-packages\toughio_io\output\tough_tough.py", line 34, in read headers, times, variables = _read_table(f, file_type) File "C:\Users\Tsukiite\AppData\Roaming\Python\Python38\site-packages\toughio_io\output\tough_tough.py", line 115, in _read_table line.strip()[0] IndexError: string index out of range