Thank you for your help. The only change that causes the error is changing (OHara used here, but other works fine too':
imp_reg = ['-num_imp_regions',1,
'-imp_region[0].im','OHara',
'-imp_region[0].num_IDs', 1,
'-imp_region[0].ID[0]', "1"]
Too:
imp_reg = ['-num_imp_regions',1,
'-imp_region[0].im','Bondarenko',
'-imp_region[0].num_IDs', 1,
'-imp_region[0].ID[0]', "1"]
As it seems others have identified this issue when applying stimuli, this is my stimulus:
E1_lower_bound = nplist([x/2-res, y/2 - res, 0])
E1_upper_bound = nplist([x/2 + res, y/2 + res, res])
electrode1 = mesh.block_region(geom, 'stimulus', 0, E1_lower_bound,E1_upper_bound, False)
electrode = electrode1
stim = ['-num_stim',1,
'-stimulus[0].stimtype', 0,
'-stimulus[0].strength',200.0,
'-stimulus[0].duration', 2,
'-stimulus[0].start',5,
'-stimulus[0].npls', 1]
The full error is below and indeed happens on time of stimlus (i.e. if i change to start at 0ms, 10ms this is when the error occurs):
Traceback (most recent call last):
File "/home/osheac/Desktop/OMTool/./mouse.py", line 125, in <module>
run()
File "/usr/local/lib/python3.10/dist-packages/carputils/tools.py", line 542, in wrapped
ret = run(args, job)
File "/home/osheac/Desktop/OMTool/./mouse.py", line 122, in run
job.carp(cmd)
File "/usr/local/lib/python3.10/dist-packages/carputils/job/job.py", line 380, in carp
self.mpi(cmd, msg, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/carputils/job/job.py", line 262, in mpi
self.register(MPICommand(cmd, message), *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/carputils/job/job.py", line 119, in register
self._queue.pop(0).execute()
File "/usr/local/lib/python3.10/dist-packages/carputils/job/command.py", line 288, in execute
divertoutput.call(self._cmd, interactive, timeout, stderr=stderr)
File "/usr/local/lib/python3.10/dist-packages/carputils/divertoutput.py", line 43, in wrapped
return func(cmd, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/carputils/divertoutput.py", line 116, in call
for line in iter(proc.stdout.readline, ''):
File "/usr/lib/python3.10/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 5: invalid start byte