Skip to content

Commit

Permalink
Avoid redefining Python builtins (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos authored Oct 10, 2023
1 parent 502fc0b commit 56c292b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec2nii/fileiobase.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def uc_from_freqscale(scale, obs, unit='ppm'):
size = len(scale)

if unit in ('ppm', 'hz', 'khz'):
complex = False
cplex = False

min = scale.min()
max = scale.max()
Expand All @@ -445,7 +445,7 @@ def uc_from_freqscale(scale, obs, unit='ppm'):
mesg = f'{unit} is not a supported unit.'
raise ValueError(mesg)

return unit_conversion(size, complex, sw, obs, car)
return unit_conversion(size, cplex, sw, obs, car)


def open_towrite(filename, overwrite=False, mode='wb'):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_philips_orientation_dcm_spar_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ def run_case(case, working_dir):
@pytest.mark.orientation
def test_dcm_spar_orientations(tmp_path):
def dcm_call(x, name):
input = base_dir / x
dcm = base_dir / x
run(
['spec2nii', 'philips_dcm',
'-o', tmp_path,
'-f', name,
input]
dcm]
)

def ss_call(x, name):
Expand Down

0 comments on commit 56c292b

Please sign in to comment.