Changing the layout of input generators

Hello,

Is it possible to combine Charge and Multiplicity into a single row, just as for Theory we have two dropdowns?

Is the code for this window in avogadrolibs/avogadro/molequeue or is it somewhere else?

All the best.

It’s definitely possible… I’m just not 100% sure on what the look would be, which is why I haven’t done it yet. (And truth be told, I’m not sure on whether it’s better to have “+1” and “-1” for charge and “singlet” etc. words for the multiplicities…)

You’d probably want something like:

Charge: 0 Multiplicity: 1

with both labels on one line. It’d require a bit of tweaking. The code is here:

1 Like

Okay, it looks something like this:

Which reminds me that I need to update the Python scripts to better defaults. (Oh, if we can move Gaussian users to ωB97XD or B97-3c …)

1 Like

Looks nice! It’s worth considering this change because for generators with many options like ORCA, you don’t really see a lot of the input file

I, for example, write the keywords on my own and am only interest to copy the geometry quickly, and so for me 80% of the screen is not useful.

Which actually makes me wonder: maybe there should be an option to just print XYZ and nothing else?

A few of the scripts (Orca in particular) need some re-organization into tabs.

You could certainly write an “input generator” with no options: GitHub - OpenChemistry/avogenerators: Python input file generators for Avogadro 2

You can also take a look at the coordinate editor (Build => Atomic Coordinate Editor):

Since you mention Orca, you should know that you can use the *xyzfile [charge] [spin] option to simply read from an XYZ file. We do this a lot, since we can have standardized keywords for jobs and just read the relevant geometries.

1 Like

I didn’t notice this before, thank you! Is it possible to assign a keyboard hotkey to that window? Just as option-command-o does optimization, maybe there could be option-command-e for coordinate editor?

I’m aware of that, thank you. I use it whenever I start calculations on top of previous ones. The only issue is that exporting XYZ is much slower (more clicks, need to navigate to the required path, if you need geom on a server then you also need to do scp) than copying it from input widget (or coordinate editor) and pasting wherever you need it.