From b08ab1c8b8cfad896176c5348ca2af2b00b5a0f9 Mon Sep 17 00:00:00 2001 From: Sebastian Mai Date: Wed, 22 May 2024 07:33:55 +0200 Subject: [PATCH] ADF_input.py: fixed integer division --- bin/ADF_input.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/ADF_input.py b/bin/ADF_input.py index 5074bab..7823dbc 100755 --- a/bin/ADF_input.py +++ b/bin/ADF_input.py @@ -40,7 +40,6 @@ import readline import time - # some constants DEBUG = False CM_TO_HARTREE = 1./219474.6 #4.556335252e-6 # conversion factor from cm-1 to Hartree @@ -98,7 +97,7 @@ def centerstring(string,n,pad=' '): if l>=n: return string else: - return pad*((n-l+1)/2)+string+pad*((n-l)/2) + return pad*((n-l+1)//2)+string+pad*((n-l)//2) def displaywelcome(): string='\n'