First time here? Checkout the FAQ!
0 votes
by (260 points)

I am changing the model from COURTEMANCHE to GPB, the example throws me the following error:

Traceback (most recent call last):
  File "/home/silvalab/.local/lib/python3.8/site-packages/bin/tuneCV", line 157, in <module>
  File "/home/silvalab/.local/lib/python3.8/site-packages/carputils/", line 528, in wrapped
    ret = run(args, job)
  File "/home/silvalab/.local/lib/python3.8/site-packages/bin/tuneCV", line 140, in run
  File "/home/silvalab/.local/lib/python3.8/site-packages/carputils/", line 561, in iterateCV
    self.vel_ = self.measureCV(os.path.join(ItJobID, 'init_acts_lats-thresh.dat'))
  File "/home/silvalab/.local/lib/python3.8/site-packages/carputils/", line 477, in measureCV
    lats = loadtxt(actsFile)
  File "/home/silvalab/.local/lib/python3.8/site-packages/numpy/lib/", line 961, in loadtxt
    fh =, 'rt', encoding=encoding)
  File "/home/silvalab/.local/lib/python3.8/site-packages/numpy/lib/", line 195, in open
    return, mode, encoding=encoding, newline=newline)
  File "/home/silvalab/.local/lib/python3.8/site-packages/numpy/lib/", line 535, in open
    raise IOError("%s not found." % path)
OSError: imp_GPB_vel_0.3_dx_400.0_It_0/init_acts_lats-thresh.dat not found.
Traceback (most recent call last):
  File "./", line 730, in <module>
  File "/home/silvalab/.local/lib/python3.8/site-packages/carputils/", line 528, in wrapped
    ret = run(args, job)
  File "./", line 456, in run
  File "./", line 657, in converge_CV
  File "/home/silvalab/.local/lib/python3.8/site-packages/carputils/job/", line 242, in bash
    self.register(ShellCommand(cmd, message), *args, **kwargs)
  File "/home/silvalab/.local/lib/python3.8/site-packages/carputils/job/", line 119, in register
  File "/home/silvalab/.local/lib/python3.8/site-packages/carputils/job/", line 163, in execute, stdout=self._stdout, stderr=self._stderr)
  File "/home/silvalab/.local/lib/python3.8/site-packages/carputils/", line 43, in wrapped
    return func(cmd, *args, **kwargs)
  File "/home/silvalab/.local/lib/python3.8/site-packages/carputils/", line 147, in call
    raise subprocess.CalledProcessError(proc.returncode, cmd[0])
subprocess.CalledProcessError: Command '/home/silvalab/.local/lib/python3.8/site-packages/bin/tuneCV' returned non-zero exit status 1.

I have been trying to debug the issue for a couple days now, but I have not found any solution. Please let me know if the simulation works on your end with GPB. This error is outputted after running the following command:

python3 ./ --np 2 --protocol PSD --visualize --model GPB

When I try to prepace as well, I get the same error.



1 Answer

0 votes
by (200 points)
Hi Sushruth,

from what I can see the error comes from tuneCV and not from the protocol itself. The tutorial is using tuneCV to output the conductivities to match the prescribed conduction velocity. Then, it is running a single cell experiment to initialize each element of the model with a prescribed state. I assume that the model GPB does not have the same ionic currents as the Courtemanche one. If you want to use a different model you have not only to change the model but also to change the ionic current and conductance modifications ("modelpar" in the convergeCV function and in the single cell initialization procedure ( Try to accordingly modify these.


Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance