Open
Description
The recent fix to glob_files made it so none of the CLS could read from STDIN. I made a small change to glob_files that fixes many cases.
However, many CLS still can't read from STDIN. The problem is that get_outfile() and get_filename() get called on infiles even if the data is coming from STDIN.
It's very useful to be able to do things like
fetchMolecule.py -i benzene | makeInput.py -m b3lyp -b 6-31G -opt -freq -o benzene.com
I've fixed makeInput.py and angle.py and will try to fix the others over the next few days. Some Tony should probably check these fixes though to make sure...
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
ajs99778 commentedon Sep 10, 2024
A subtle difference, but they can read from STDIN. They just won't print the results.
For the fixes, I think we still want to allow outputting to a file. The current implementation implementation for
makeInput.py
would basically ignore the-o
flag if the input is STDIN since it requires both a -o option and the input to be a filename.A way to fix this would be something like
If you have a certain Tony in mind, be sure to mention their user name preceded by an @ so that they get notified. The odds of a random person with a specific name checking these issues is astronomically low.
swheele2 commentedon Sep 10, 2024
Thanks Tony.
In terms of the current versions (the ones on PyPi for example), you mean they take STDIN but won't print the results to a file.
The reference to "A certain Tony" was a subtle reference to the UT-Mainz ACES II manual from 20 years ago (ACES II later became CFOUR), which still had a note in it for "a certain Daniel" to fix/implement something a decade after Crawford stopped being a postdoc. I figured you'd see it even without @ajs99778 .
swheele2 commentedon Sep 10, 2024
I fixed a few more CLS. I think I've caught most of the ones for which it makes sense to allow for STDIN and an outfile.
I've also tried to make the CLS more consistent in terms of appending or not appending results to outfile. angle, bond, and dihedral all behave differently. Also, several of these didn't include line returns when writing to a file--only when printint to STDOUT.