Skip to content

Commit

Permalink
bump version, merge pull request #5 from NiftyPET/devel
Browse files Browse the repository at this point in the history
fix `DEV_ID==0` bug
  • Loading branch information
casperdcl authored Dec 6, 2020
2 parents db5d008 + 518ec15 commit 88c500f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions niftypet/ninst/raw/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ def get_gpu_constants(Cnt=None):
"DEV_ID", # device id; used for choosing the GPU device for calculations
"CC_ARCH", # chosen device architectures for NVCC compilation
]:
val = globals().get(k, "")
if val:
val = globals().get(k)
if val is not None:
Cnt[k.replace("_", "")] = val

return Cnt
Expand Down Expand Up @@ -320,8 +320,8 @@ def get_setup(Cnt=None):
"VINCIPATH",
"REFPATH", # > testing
]:
val = globals().get(k, "")
if val:
val = globals().get(k)
if val is not None:
Cnt[k] = val

Cnt["ENBLXNAT"] = ENBLXNAT
Expand Down

0 comments on commit 88c500f

Please sign in to comment.