From 6f6416f6544ae13aeeb7ba15a62232a20d6204ed Mon Sep 17 00:00:00 2001 From: Abhishek Mitra Date: Mon, 29 Jul 2024 13:00:50 -0500 Subject: [PATCH] Removed more unnecessary lines --- exploratory/citools/lasci_ominus1.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/exploratory/citools/lasci_ominus1.py b/exploratory/citools/lasci_ominus1.py index 28bc35d7..7db6b5f0 100644 --- a/exploratory/citools/lasci_ominus1.py +++ b/exploratory/citools/lasci_ominus1.py @@ -23,7 +23,6 @@ from itertools import product verbose_lbjfgs = [-1,-1,-1,0,50,99,100,101,101,101] -GLOBAL_MAX_CYCLE = None def _n_m_s (dm1s, dm2s, _print_fn=print): neleca = np.trace (dm1s[0]) nelecb = np.trace (dm1s[1]) @@ -35,8 +34,6 @@ def _n_m_s (dm1s, dm2s, _print_fn=print): def kernel (fci, h1, h2, norb, nelec, norb_f=None, ci0_f=None, tol=1e-8, gtol=1e-4, max_cycle=15000, orbsym=None, wfnsym=None, ecore=0, **kwargs): - if max_cycle is None: - max_cycle = GLOBAL_MAX_CYCLE if GLOBAL_MAX_CYCLE is not None else 15000 if norb_f is None: norb_f = getattr (fci, 'norb_f', [norb]) if ci0_f is None: ci0_f = fci.get_init_guess (norb, nelec, norb_f, h1, h2) verbose = kwargs.get ('verbose', getattr (fci, 'verbose', 0))