fix error

error message:

Traceback (most recent call last):
File "C:/Users/Lu/Documents/GitHub/gm_phd_py/main.py", line 73, in
<module>
gm_phd_predict_exist()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_predict_exist.py",
line 35, in gm_phd_predict_exist
globals.mk_k_minus_1 = np.hstack((globals.mk_minus_1, globals.m_birth,
globals.m_spawn))
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 73, in
<module>
gm_phd_predict_exist()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_predict_exist.py",
line 45, in gm_phd_predict_exist
globals.Pk_k_minus_1 = np.hstack((globals.Pk_minus_1, globals.P_birth,
globals.P_spawn))
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 73, in
<module>
gm_phd_predict_exist()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_predict_exist.py",
line 51, in gm_phd_predict_exist
globals.mk_k_minus_1_before_prediction =
np.hstack((globals.mk_k_minus_1_before_prediction,
globals.m_birth_before_prediction))
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 75, in
<module>
gm_phd_construct_update_components()
File
"C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_construct_update_components.py",
line 49, in gm_phd_construct_update_components
globals.S = np.hstack((globals.S, S_j))     # GLOBAL!
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 77, in
<module>
gm_phd_update()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_update.py", line 71,
in gm_phd_update
w_new =
globals.prob_detection*globals.wk_k_minus_1[j]*norm_pdf_multivariate(thisZ[globals.weightDataRange-1],
globals.eta[globals.weightDataRange-1, j],
globals.S[globals.weightDataRange-1,
S_range[globals.weightDataRange-1]])
IndexError: too many indices for array
set float
fix error

error message:

Traceback (most recent call last):
File "C:/Users/Lu/Documents/GitHub/gm_phd_py/main.py", line 77, in
<module>
gm_phd_update()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_update.py", line 90,
in gm_phd_update
print("Before Update: %3.4f %3.4f %3.4f %3.4f %3.4f %3.4f" %
globals.m_k[0], globals.m_k[1], globals.m_k[2], globals.m_k[3])
TypeError: float argument required, not numpy.ndarray
fix error

error message:

Traceback (most recent call last):
File "C:/Users/Lu/Documents/GitHub/gm_phd_py/main.py", line 77, in
<module>
gm_phd_update()
File "C:\Users\Lu\Documents\GitHub\gm_phd_py\gm_phd_update.py", line 90,
in gm_phd_update
print("Before Update: %3.4f %3.4f %3.4f %3.4f %3.4f %3.4f" %
globals.m_k[0, 0], globals.m_k[1, 0], globals.m_k[2, 0], globals.m_k[3,
0])
TypeError: not enough arguments for format string