In [3]: %run -d area_profile.py Breakpoint 1 at /gpfs/bbp.cscs.ch/home/newton/vsd/improclib/analysis/wrappers/validations/area_profile.py:1 NOTE: Enter 'c' at the ipdb> prompt to continue execution. > /gpfs/bbp.cscs.ch/home/newton/vsd/improclib/analysis/wrappers/validations/area_profile.py(1)() 1---> 1 import numpy as np 2 import neurom as nm 3 import bluepy as bp 4 from os.path import join 5 from bluepy.targets.mvddb import Neuron ipdb> b 70 Breakpoint 2 at /gpfs/bbp.cscs.ch/home/newton/vsd/improclib/analysis/wrappers/validations/area_profile.py:70 ipdb> c --------------------------------------------------------------------------- KeyError Traceback (most recent call last) /gpfs/bbp.cscs.ch/home/newton/v8/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in safe_execfile(self, fname, *where, **kw) 2479 py3compat.execfile( 2480 fname, glob, loc, -> 2481 self.compile if kw['shell_futures'] else None) 2482 except SystemExit as status: 2483 # If the call was made with 0 or None exit status (sys.exit(0) /gpfs/bbp.cscs.ch/home/newton/v8/lib/python2.7/site-packages/IPython/utils/py3compat.pyc in execfile(fname, glob, loc, compiler) 287 where = [ns for ns in [glob, loc] if ns is not None] 288 if compiler is None: --> 289 builtin_mod.execfile(filename, *where) 290 else: 291 scripttext = builtin_mod.open(fname).read().rstrip() + '\n' /gpfs/bbp.cscs.ch/home/newton/vsd/improclib/analysis/wrappers/validations/area_profile.py in () 54 55 # bounding box dimensions ---> 56 bbox_res = 5 # [um/pixel] 57 bbox_d = 601 58 bbox_h = 301 /gpfs/bbp.cscs.ch/home/newton/vsd/improclib/analysis/wrappers/validations/area_profile.py in () 54 55 # bounding box dimensions ---> 56 bbox_res = 5 # [um/pixel] 57 bbox_d = 601 58 bbox_h = 301 /opt/rh/python27/root/usr/lib64/python2.7/bdb.pyc in trace_dispatch(self, frame, event, arg) 47 return # None 48 if event == 'line': ---> 49 return self.dispatch_line(frame) 50 if event == 'call': 51 return self.dispatch_call(frame, arg) /opt/rh/python27/root/usr/lib64/python2.7/bdb.pyc in dispatch_line(self, frame) 64 65 def dispatch_line(self, frame): ---> 66 if self.stop_here(frame) or self.break_here(frame): 67 self.user_line(frame) 68 if self.quitting: raise BdbQuit /opt/rh/python27/root/usr/lib64/python2.7/bdb.pyc in break_here(self, frame) 137 138 # flag says ok to delete temp. bp --> 139 (bp, flag) = effective(filename, lineno, frame) 140 if bp: 141 self.currentbp = bp.number /opt/rh/python27/root/usr/lib64/python2.7/bdb.pyc in effective(file, line, frame) 567 568 """ --> 569 possibles = Breakpoint.bplist[file,line] 570 for i in range(0, len(possibles)): 571 b = possibles[i] KeyError: ('/gpfs/bbp.cscs.ch/home/newton/vsd/improclib/analysis/wrappers/validations/area_profile.py', 56)