xtb icon indicating copy to clipboard operation
xtb copied to clipboard

json flag ignored with tblite

Open TimoSommer opened this issue 11 months ago • 1 comments

If I call xtb with tblite (--tblite), the json flag (--json) is ignored and there will be no output json file written. Same thing if the command to write the json is given via an xtb.inp file.

To Reproduce Please run the following two commands with a sample xyz file and compare the output: xtb --json molecule.xyz --> correctly writes file xtbout.json xtb --json --tblite molecule.xyz --> no output json file

Expected behaviour I would expect that the file xtbout.json is part of the output, since both the xtb module and the independent tblite module support the --json flag. The json files of the xtb module and the tblite module look quite different, but I would expect at least one of them.

Additional context xtb version: 6.6.1 tblite version: 0.3.0

TimoSommer avatar Mar 04 '24 13:03 TimoSommer

Hello, thanks for sharing, I can reproduce this.

Albkat avatar Mar 07 '24 08:03 Albkat