Skip to content

Commit 8a6c996

Browse files
committed
Remove unused global statements
1 parent 657d0af commit 8a6c996

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

kafe2/core/fitters/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323

2424

2525
def get_fitter(fitter_spec):
26-
global AVAILABLE_FITTERS
27-
2826
# for 'None', return the default fitter
2927
if fitter_spec is None:
3028
_fitter = AVAILABLE_FITTERS.get(kc["core"]["fitters"]["default_fitter"], None)

kafe2/core/minimizers/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def get_minimizer(minimizer_spec=None):
7474
:type minimizer_spec: str or None
7575
:return: MinimizerBase-derived kafe2 minimizer object
7676
"""
77-
global AVAILABLE_MINIMIZERS
7877
# for 'None', return the default minimizer
7978
if minimizer_spec is None:
8079
# go through the default minimizers in the order specified in config

0 commit comments

Comments
 (0)