close Warning: Can't synchronize with repository "(default)" (/common/SVN/wimax does not appear to be a Subversion repository.). Look in the Trac log for more information.

Changes between Version 13 and Version 14 of dSite/gGIMISetup


Ignore:
Timestamp:
Dec 3, 2012, 11:23:21 PM (11 years ago)
Author:
ffund01
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • dSite/gGIMISetup

    v13 v14  
    107107=== Extend OMF EC (Optional) ===
    108108
    109 You may optionally make some changes to the OMF experiment controller to allow users to archive their last experiment by running {{{iarchive}}} with no arguments.
    110109
    111 In {{{/usr/share/omf-expctl-5.3/omf-expctl/experiment.rb}}} add this line in the Experiment class:
    112 
    113 {{{
    114   @@user = %x(whoami).downcase.chomp
    115 }}}
    116 
    117 and modify the Experiment.ID function as follows:
    118 
    119 {{{
    120   #
    121   # Return the ID of this Experiment
    122   #
    123   # [Return] the experiment's ID (String)
    124   #
    125   def Experiment.ID
    126     ts = DateTime.now.strftime("%Ft%T%Z").gsub(':','.')
    127     if (@@expID == nil)
    128       # since we use the exp ID as the pubsub user name
    129       # we need to get rid of ":" and uppercase characters
    130       ts = DateTime.now.strftime("%Ft%T%Z").gsub(':','.')
    131       @@expID = "#{@@user}-#{@@sliceID}-#{ts}"
    132       #YTraceState.experiment(:id, @@expID)
    133     end
    134  
    135     File.open(ENV['HOME']+'/.omf-expctl', 'w') do |f2|
    136       f2.puts "EXP_ID=#{@@expID}"
    137       f2.puts "SLICE=#{@@sliceID}"
    138       f2.puts "OMF_USER=#{@@user}"
    139       f2.puts "OMF_DATE=#{ts}"
    140       f2.close
    141     end
    142  
    143     return @@expID
    144   end
    145 }}}
    146 
    147 
    148 Now every time a user runs an experiment, the EC will create a sourceable file called ".omf-expctl" in the user's home directory. It will look something like this:
    149 
    150 {{{
    151 EXP_ID=ffund-default_slice-2012-11-06t22.31.47-05.00
    152 SLICE=default_slice
    153 EXP_USER=ffund
    154 EXP_DATE=2012-11-06t22.31.53-05.00
    155 }}}
    156110
    157111=== Install iRODS web browser (Optional) ===