-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: absolute value in queries #90
Labels
doc
Add documentation for this
Comments
arithmetic on variables is planned, but doesn’t work yet. it’s a major undertaking ( and will always be MUCH SLOWER than the explicitly written version that doesn’t use operators). you need to put the OR inside the quotes.
This certainly worked for me: abcd summary -q 'filename~"Surf" or filename~"n500”'
I think the “or” needs to be lower case...
…-- Gábor
Gábor Csányi
Professor of Molecular Modelling
Engineering Laboratory, University of Cambridge
Pembroke College Cambridge
Pembroke College supports CARA. A Lifeline to Academics at Risk. http://www.cara.ngo/
On 16 Mar 2020, at 12:28, eszter137 ***@***.***> wrote:
I'd like to be able to do something like:
abcd summary -q "ABS(E_MP2_3b)>0.01" -p "E_MP2_3b"
This would be useful when checking for the large differences between 2 calculation methods.
(It could be also solved by the OR operator but I haven't figured out how to use this yet - the following didn't work:
$ abcd summary -q "E_MP2_3b<-0.01" OR "E_MP2_3b>0.01" -p "E_MP2_3b"
$ abcd summary -q "E_MP2_3b<-0.01 OR E_MP2_3b>0.01" -p "E_MP2_3b"
)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I think this is something similar to your example but not working:
When changing the place of the quotes, I don't get any results:
though there are definitely structures with either of the queries:
|
it seems it handles numbers within quotes as strings, this won't result in any structures again:
|
ok, this version is working finally when removing the internal quotes:
|
strings are quoted, numbers are not!! But (for strings) the quotes need to be protected from the shell by either enclosing the entire argument of the -q in ‘ (single quotes) or using backslashes on the double quotes.
…-- Gábor
Gábor Csányi
Professor of Molecular Modelling
Engineering Laboratory, University of Cambridge
Pembroke College Cambridge
Pembroke College supports CARA. A Lifeline to Academics at Risk. http://www.cara.ngo/
On 16 Mar 2020, at 16:01, eszter137 ***@***.***> wrote:
it seems it handles numbers within quotes as strings, this won't result in any structures again:
$ abcd summary -q 'E_MP2_3b<"-0.01"' -p "E_MP2_3b"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like to be able to do something like:
This would be useful when checking for the large differences between 2 calculation methods.
(It could be also solved by the OR operator but I haven't figured out how to use this yet - the following didn't work:
)
The text was updated successfully, but these errors were encountered: