search for: current_instance

Displaying 2 results from an estimated 2 matches for "current_instance".

2008 Feb 19
0
Issue with Observers and has_one association...
...s null. I looked in the development.log file and the SQL for the has_one association isn''t even being executed. On the other hand, when I replace the has_one association with just a hand crafted method, it does get called correctly. So the following does not work: class Task has_one :current_instance, :class_name => ''TaskInstance'', :foreign_key => ''task_id'', :order => ''start_at DESC'', :conditions => ''end_at IS NULL'' but when replaced with the follwoing, it does work....
2006 Aug 10
1
How to speed up nested for loop computations
...UR26 102OPT,resUR27102OPT,resUR28102OPT,resUR29102OPT,resUR36102OPT,resUR3710 2OPT,resUR38102OPT,resUR39102OPT,resPIR2OPT,resSEQ2OPT,resSEQ22OPT) attach(res) lalgo<-levels(idalgo) linstance<-levels(instance) ltry<-unique(try) lcpu<-unique(cpu_id) for (i in (1:length(linstance))) { current_instance<-linstance[i] bestalgo<-list() for (j in (1:length(ltry))) { current_try<-ltry[j] for (k in (1:length(lalgo))) { current_algo<-lalgo[k] res2<-res[res$instance==current_instance & res$try==current_try & res$idalgo==current_algo,] # res2 contains for a g...