Not sure I quite understand your problem, but what about a python dictionary of condition strings which are then pulled out and used with eval() I do this all the time - saves big-'switch' /multiple 'for' statements.
David On 06/11/2007, at 5:33 AM, Vince Fulco wrote: > A bit off track from the core app but I wondered if anyone might have > a suggestion for the best way to store (and access) a set of > conditions to be used against an automated table query process. Not > sure if the easiest and most efficient way is to store in a text file > and then use line splits to break up the criteria then feeding them > into pytables. > > For example, my file might look like- > > Condition #1, temperature > 10 degrees & temperature < 20 degrees > Condition #2, temperature > 20 degrees & temperature < 30 degrees & > Tuesday > > The individual conditions might have a number of criteria from 1 to > 6 typically. > > I would like to run each line as a separate query against my data and > then calculate summary statistics. Any trailheads would be much > appreciated. > > > Best, > > Vince Fulco > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Pytables-users mailing list > Pytables-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pytables-users > _________________________________________________ experimental polymedia: www.avatar.com.au Sonic Communications Research Group, University of Canberra: creative.canberra.edu.au/scrg/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users