libAtoms / abcd

2 stars 4 forks source link

string values must be in quotes in query expressions #62

Closed gabor1 closed 4 years ago

gabor1 commented 5 years ago

we decided that string values (e.g. date strings, or any other string, e.g. regexp) must be in quotes in queries. this means that unquoted strings are 'variables' i.e. they are assumed to be keys. If a query expression contains an unquoted string which doesn't exist as a key for a given configuration, then that expression evaluates to False, and interacts with the rest of the query as such. i.e. -q "tag || ( energy < 0 )" will return all configurations which either key called tag or, they have an energy key and its value is less than 0.