TomographicImaging / iDVC

Digital Volume Correlation user interface
Apache License 2.0
4 stars 1 forks source link

Error message in run DVC when using inp point cloud #273

Closed DanicaSTFC closed 2 weeks ago

DanicaSTFC commented 1 month ago

After merging #269 the following error appears when using a inp point cloud and running DVC:

finished 1/1 (or 1) with 0 PySide2.QtCore.QProcess.ExitStatus.NormalExit
all OK, all processes ended
Traceback (most recent call last):
conda\envs\idvc\lib\site-packages\idvc\dvc_interface.py", line 4798, in show_run_pcs
    result = RunResults(file_path)
conda\envs\idvc\lib\site-packages\idvc\utilities.py", line 18, in __init__
    with open(stat_file_name,"r") as stat_file:
FileNotFoundError: [Errno 2] No such file or directory: \iDVC\\DVC_Sessions\\tmp11pyor7d\\Results\\a\\dvc_result_0\\dvc_result_0.stat'
Traceback (most recent call last):
 \envs\idvc\lib\site-packages\idvc\dvc_runner.py", line 479, in finished_run
    finish_fn()
\envs\idvc\lib\site-packages\idvc\dvc_interface.py", line 4639, in finished_run
    self.show_run_pcs()
envs\idvc\lib\site-packages\idvc\dvc_interface.py", line 4798, in show_run_pcs
    result = RunResults(file_path)
conda\envs\idvc\lib\site-packages\idvc\utilities.py", line 18, in __init__
    with open(stat_file_name,"r") as stat_file:
FileNotFoundError: [Errno 2] No such file or directory: iDVC\\DVC_Sessions\\tmp11pyor7d\\Results\\a\\dvc_result_0\\dvc_result_0.stat'
DanicaSTFC commented 2 weeks ago

The error occurs for csv and xlsx too.

For csv an extra error occurs where the nan appears in the point cloud after it is imported as a numpy array. The nan occurs due to the BOM characterising csv files.