Skip to content

Commit

Permalink
start of changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pjmark committed May 6, 2024
1 parent 0387f62 commit 0f61c76
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
12 changes: 6 additions & 6 deletions niftypet/nipet/include/scanner_sig.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
// IMAGE SIZE
// SZ_I* are image sizes
// SZ_V* are voxel sizes
#define SZ_IMX 576
#define SZ_IMY 576
#define SZ_IMZ 178
#define SZ_VOXY 0.1041665f
#define SZ_VOXZ 0.139f
#define SZ_VOXZi 7.194245f
#define SZ_IMX 288
#define SZ_IMY 288
#define SZ_IMZ 89
#define SZ_VOXY 0.208333f
#define SZ_VOXZ 0.278f
#define SZ_VOXZi 3.597122f
#define RSZ_PSF_KRNL 8
//## end ##//
//<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Expand Down
6 changes: 4 additions & 2 deletions niftypet/nipet/lm_inv/hist_inv.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ def hist_inv(datain, scanner_params, t0=0, t1=0, outpath='', frms=None, use_stor
log.debug('acquisition duration by integrating time tags is {} sec.'.format(nitag))

elif os.path.isfile(datain['lm_bf']):

lmpth = str(datain['lm_bf'])

Check failure on line 57 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#L57

W293 blank line contains whitespace
Raw output
niftypet/nipet/lm_inv/hist_inv.py:57:1: W293 blank line contains whitespace
# > gather info about the LM time tags
nele, ttags, tpos = lmproc_inv.lminfo(datain['lm_bf'], Cnt)
nele, ttags, tpos = lmproc_inv.lminfo(lmpth, Cnt)

# > multiply time tags by 200 microsecond - the reported time increments in list data
nitag = int((ttags[1] - ttags[0] + 999) / 1000)
Expand Down Expand Up @@ -98,7 +100,7 @@ def hist_inv(datain, scanner_params, t0=0, t1=0, outpath='', frms=None, use_stor

# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# do the histogramming and processing
lmproc_inv.hist(hstout, datain['lm_bf'], t0, t1, txLUT, axLUT, Cnt)
lmproc_inv.hist(hstout, lmpth, t0, t1, txLUT, axLUT, Cnt)
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

if store:
Expand Down

0 comments on commit 0f61c76

Please sign in to comment.