Skip to content

Commit

Permalink
fixed/cleaned
Browse files Browse the repository at this point in the history
  • Loading branch information
pjmark committed May 7, 2024
1 parent a0409f7 commit 3bf205e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions niftypet/nipet/lm_inv/hist_inv.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def hist_inv(datain, scanner_params, t0=0, t1=0, outpath='', frms=None, use_stor
'dsn': dsino, 'ssr': ssr}
# ---------------------------------------

log.debug('run the GPU histogramming...')

Check failure on line 102 in niftypet/nipet/lm_inv/hist_inv.py

View workflow job for this annotation

GitHub Actions / flake8

[flake8] niftypet/nipet/lm_inv/hist_inv.py#L102

W293 blank line contains whitespace
Raw output
niftypet/nipet/lm_inv/hist_inv.py:102:1: W293 blank line contains whitespace
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# do the histogramming and processing
lmproc_inv.hist(hstout, lmpth, t0, t1, txLUT, axLUT, Cnt)
Expand Down
4 changes: 1 addition & 3 deletions niftypet/nipet/lm_inv/src/lm_inv_module.cu
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static PyObject *hist(PyObject *self, PyObject *args) {
Cnt.BTPRT = (float)PyFloat_AsDouble(pd_btprt);
PyObject *pd_devid = PyDict_GetItemString(o_cnst, "DEVID");
Cnt.DEVID = (char)PyLong_AsLong(pd_devid);

//> axial LUTs:
PyObject *pd_msn;
if (Cnt.SPN==1){
Expand Down Expand Up @@ -277,8 +277,6 @@ static PyObject *hist(PyObject *self, PyObject *args) {
axLUT.Msn = (short *)PyArray_DATA(p_msn);
axLUT.Mssrb = (short *)PyArray_DATA(p_mssrb);

printf(">>>> M=%d\n", axLUT.Msn[1]);

// crystal-to-sinogram LUT from txLUTs
int *c2s = (int *)PyArray_DATA(p_c2s);

Expand Down

0 comments on commit 3bf205e

Please sign in to comment.