code: def setImembPtr(self): 
          
          jseg = 0
          for sec in list(self.secs.values()):
              hSec = sec['hObj']
              for iseg, seg in enumerate(hSec):
                  self.imembPtr.pset(jseg, seg._ref_i_membrane_)  # notice the underscore at the end (in nA)
                  jseg += 1
docs: Set PtrVector to point to the i_membrane_