Skip to content

Commit

Permalink
Merge pull request #73 from shimoura/add_ValueError_exception
Browse files Browse the repository at this point in the history
add except ValueError in VisualCortex_Data.py
  • Loading branch information
shimoura authored Apr 17, 2024
2 parents 51ab1f0 + e32fd78 commit d6d95ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multiarea_model/data_multiarea/VisualCortex_Data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1325,8 +1325,8 @@ def probit(x,):
out = proc.communicate()[0].decode('utf-8')
R_fit = [float(out.split('\n')[1].split(' ')[1]),
float(out.split('\n')[1].split(' ')[3])]
except (OSError, IndexError):
print("No R installation or IndexError, taking hard-coded SLN fit parameters.")
except (OSError, IndexError, ValueError):
print("No R installation or IndexError/ValueError, taking hard-coded SLN fit parameters.")
R_fit = [-0.1516142, -1.5343200]

"""
Expand Down

0 comments on commit d6d95ad

Please sign in to comment.