Skip to content
Snippets Groups Projects
Unverified Commit d6d95ad0 authored by shimoura's avatar shimoura Committed by GitHub
Browse files

Merge pull request #73 from shimoura/add_ValueError_exception

add except ValueError in VisualCortex_Data.py
parents 51ab1f0b e32fd784
No related branches found
No related tags found
No related merge requests found
Pipeline #60346 failed with stage
in 8 minutes and 14 seconds
...@@ -1325,8 +1325,8 @@ def process_raw_data(): ...@@ -1325,8 +1325,8 @@ def process_raw_data():
out = proc.communicate()[0].decode('utf-8') out = proc.communicate()[0].decode('utf-8')
R_fit = [float(out.split('\n')[1].split(' ')[1]), R_fit = [float(out.split('\n')[1].split(' ')[1]),
float(out.split('\n')[1].split(' ')[3])] float(out.split('\n')[1].split(' ')[3])]
except (OSError, IndexError): except (OSError, IndexError, ValueError):
print("No R installation or IndexError, taking hard-coded SLN fit parameters.") print("No R installation or IndexError/ValueError, taking hard-coded SLN fit parameters.")
R_fit = [-0.1516142, -1.5343200] R_fit = [-0.1516142, -1.5343200]
""" """
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment