fix error

error message:
Traceback (most recent call last):
File "C:/Users/Lu/Documents/GitHub/gm_phd_py/main.py", line 80, in
<module>
gm_phd_prune()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_prune.py", line 31,
in gm_phd_prune
while I.size:   # We delete from I as we merge
AttributeError: 'tuple' object has no attribute 'size'
fix error

error message:
Traceback (most recent call last):
File "C:/Users/Lu/Documents/GitHub/gm_phd_py/main.py", line 80, in
<module>
gm_phd_prune()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_prune.py", line 93,
in gm_phd_prune
globals.numTargets_J_pruned = globals.w_bar_k.shape[1]  # The number of
targets after pruning
IndexError: tuple index out of range
fix error

error message:
Traceback (most recent call last):
File "C:/Users/Lu/Documents/GitHub/gm_phd_py/main.py", line 83, in
<module>
gm_phd_estimate()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_estimate.py", line
35, in gm_phd_estimate
globals.X_k = globals.m_bar_k[:, i]
IndexError: too many indices
fix error

error message:
Traceback (most recent call last):
File "C:/Users/Lu/Documents/GitHub/gm_phd_py/main.py", line 83, in
<module>
gm_phd_estimate()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_estimate.py", line
40, in gm_phd_estimate
globals.X_k_w = globals.w_bar_k[:, i]
IndexError: too many indices
fix error

error message:
Traceback (most recent call last):
File "C:/Users/Lu/Documents/GitHub/gm_phd_py/main.py", line 83, in
<module>
gm_phd_estimate()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_estimate.py", line
46, in gm_phd_estimate
for j in range(i):
TypeError: only length-1 arrays can be converted to Python scalars
fix error

error message:
Traceback (most recent call last):
File "C:/Users/Lu/Documents/GitHub/gm_phd_py/main.py", line 83, in
<module>
gm_phd_estimate()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_estimate.py", line
57, in gm_phd_estimate
print("\t%d targets believed to be valid:" % globals.X_k.shape[1])
IndexError: tuple index out of range
fix error

Traceback (most recent call last):
File "C:/Users/Lu/Documents/GitHub/gm_phd_py/main.py", line 89, in
<module>
gm_phd_create_birth()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_create_birth.py",
line 124, in gm_phd_create_birth
nTargets = globals.X_k.shape(1)
TypeError: 'tuple' object is not callable
fix error

error message:

Traceback (most recent call last):
File "C:/Users/Lu/Documents/GitHub/gm_phd_py/main.py", line 89, in
<module>
gm_phd_create_birth()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_create_birth.py",
line 141, in gm_phd_create_birth
globals.P_birth = np.hstack((globals.P_birth, P_i))
File "C:\Python27\lib\site-packages\numpy\core\shape_base.py", line 275,
in hstack
return _nx.concatenate(arrs, 0)
ValueError: all the input arrays must have same number of dimensions
fix error

error message:

Traceback (most recent call last):
File "C:/Users/Lu/Documents/GitHub/gm_phd_py/main.py", line 89, in
<module>
gm_phd_create_birth()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_create_birth.py",
line 177, in gm_phd_create_birth
thisM = globals.m_birth[:, j]
IndexError: too many indices
fix print message
fix error

error message:

Traceback (most recent call last):
File "C:/Users/Lu/Documents/GitHub/gm_phd_py/main.py", line 71, in
<module>
gm_phd_predict_birth()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_predict_birth.py",
line 27, in gm_phd_predict_birth
globals.m_birth_before_prediction = np.hstack((globals.m_birth,
globals.m_spawn))
File "C:\Python27\lib\site-packages\numpy\core\shape_base.py", line 277,
in hstack
return _nx.concatenate(arrs, 1)
ValueError: all the input arrays must have same number of dimensions
fix error

error message:

Traceback (most recent call last):
File "C:/Users/Lu/Documents/GitHub/gm_phd_py/main.py", line 71, in
<module>
gm_phd_predict_birth()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_predict_birth.py",
line 38, in gm_phd_predict_birth
globals.P_birth[:, P_range] = globals.Q+np.dot(np.dot(globals.F,
globals.P_birth), globals.F.T)
ValueError: matrices are not aligned