bholt / experiments-new

Library for running and tabulating experiments and parameter sweeps.
2 stars 1 forks source link

History (interface to DB) #7

Closed bholt closed 11 years ago

bholt commented 11 years ago

"Status" loses track of jobs after they finish. Need a way to query the database to find finished jobs.

bholt commented 11 years ago

See Igor::results(): creates a Sequel::Model out of dataset, allow arbitrary filtering beforehand with block, and then user can interact with the Model at their leisure.

Punting on having "helpers" to show recent jobs--can't figure out a way to support it that doesn't limit functionality of resulting Model instance. Instead, just have user save a custom Model instance with correct filtering returned by results:

$recent = results{|t| t.order(:run_at).select(:scale, :nnode, :ppn, :max_teps).limit(5)}