message: Core: fixed python getters for E and Rx in chain.py.
diff: import spirit.spiritlib as spiritlib
  +import spirit.parameters as parameters
  import ctypes
  ### Load Library
  @@ -120,7 +121,10 @@ def Get_Rx(p_state, idx_chain=-1):
  noi = Get_NOI(p_state, idx_chain)
  arrayX = ctypes.c_float * noi
  Rx = [0]*noi
  - _Get_Rx(p_state, arrayX(*Rx), idx_chain)
  + _Rx = arrayX(*Rx)
  + _Get_Rx(p_state, _Rx, idx_chain)
  + for i in range(noi):
  + Rx[i] = _Rx[i]
  return Rx
  ### Get Rx interpolated
  @@ -129,11 +133,14 @@ _Get_Rx_Interpolated.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_float)
  _Get_Rx_Interpolated.restype = None
  def Get_Rx_Interpolated(p_state, idx_chain=-1):
  noi = Get_NOI(p_state, idx_chain)
  - n_interp = Get_GNEB_N_Energy_Interpolations(p_state, idx_chain)
  - len_Rx = (noi-1)*n_interp
  + n_interp = parameters.Get_GNEB_N_Energy_Interpolations(p_state, idx_chain)
  + len_Rx = noi + (noi-1)*n_interp
  arrayX = ctypes.c_float * len_Rx
  Rx = [0]*len_Rx
  - _Get_Rx_Interpolated(p_state, arrayX(*Rx), idx_chain)
  + _Rx = arrayX(*Rx)
  + _Get_Rx_Interpolated(p_state, _Rx, idx_chain)
  + for i in range(len_Rx):
  + Rx[i] = _Rx[i]
  return Rx
  ### Get Energy
  @@ -144,8 +151,11 @@ def Get_Energy(p_state, idx_chain=-1):
  noi = Get_NOI(p_state, idx_chain)
  arrayX = ctypes.c_float * noi
  Energy = [0]*noi
  - _Get_Energy(p_state, arrayX(*Energy), idx_chain)
  - return Rx
  + _Energy = arrayX(*Energy)
  + _Get_Energy(p_state, _Energy, idx_chain)
  + for i in range(noi):
  + Energy[i] = _Energy[i]
  + return Energy
  ### Get Energy Interpolated
  _Get_Energy_Interpolated = _spirit.Chain_Get_Energy_Interpolated
  @@ -153,9 +163,12 @@ _Get_Energy_Interpolated.argtypes = [ctypes.c_void_p, ctypes.POINTER(ctypes.c_fl
  _Get_Energy_Interpolated.restype = None
  def Get_Energy_Interpolated(p_state, idx_chain=-1):
  noi = Get_NOI(p_state, idx_chain)
  - n_interp = Get_GNEB_N_Energy_Interpolations(p_state, idx_chain)
  - len_Energy = (noi-1)*n_interp
  + n_interp = parameters.Get_GNEB_N_Energy_Interpolations(p_state, idx_chain)
  + len_Energy = noi + (noi-1)*n_interp #this->noi + (this->noi - 1)*gneb_parameters->n_E_interpolations
  arrayX = ctypes.c_float * len_Energy
  Energy_interp = [0]*len_Energy
  - _Get_Energy_Interpolated(p_state, arrayX(*Energy_interp), idx_chain)
  - return Rx
  \ No newline at end of file
  + _Energy = arrayX(*Energy_interp)
  + _Get_Energy_Interpolated(p_state, _Energy, idx_chain)
  + for i in range(len_Energy):
  + Energy_interp[i] = _Energy[i]
  + return Energy_interp
  \ No newline at end of file
  