paduagroup / clandpol

Polarisable force field for ionic liquids
10 stars 17 forks source link

Input file problem #12

Closed kateryna-goloviznina closed 3 years ago

kateryna-goloviznina commented 3 years ago

@agiliopadua

Traceback (most recent call last): File "polarizer.py", line 1243, in main() File "polarizer.py", line 1237, in main data.lmpscript(drude, args.outdfile, args.thole, args.cutoff) File "polarizer.py", line 617, in lmpscript with open(inpstack, 'x') as f: ValueError: mode string must begin with one of 'r', 'w', 'a' or 'U', not 'x'

I will fix it.

kateryna-goloviznina commented 3 years ago

Solved.

agiliopadua commented 3 years ago

Funny, works on my python… it’s great compared to w because it gives an error if the file exists. Agilio

On 18 Feb 2021, at 17:46, Kateryna Goloviznina notifications@github.com wrote:

@agiliopadua https://github.com/agiliopadua Traceback (most recent call last): File "polarizer.py", line 1243, in main() File "polarizer.py", line 1237, in main data.lmpscript(drude, args.outdfile, args.thole, args.cutoff) File "polarizer.py", line 617, in lmpscript with open(inpstack, 'x') as f: ValueError: mode string must begin with one of 'r', 'w', 'a' or 'U', not 'x'

I will fix it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kateryna-goloviznina/pol_il/issues/12, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKFQZEDSB7S7OUI4KP5ORTS7VAAFANCNFSM4X2UJGWQ.

kateryna-goloviznina commented 3 years ago

@agiliopadua It works only with python3.