coderunner 0.14.14 → 0.14.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/coderunner.gemspec +3 -3
- data/lib/coderunner.rb +2 -1
- data/lib/coderunner/class_methods.rb +4 -1
- data/lib/coderunner/run.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79dd936b90d793d72c0b3852c6589ce580f0fd62
|
4
|
+
data.tar.gz: 73e3671177c9bc6c8ee8f80d82d59b2d2caae776
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4977e1dd0355b34f24ba289f791e5696407912fff638a207598b15a6a10066cfa99e8b7c263ad857bd7cb361001f3c21240b73261a5e5c1739bbc341fedaacb
|
7
|
+
data.tar.gz: ae64511fc428a7eac52406a0abbb0acb64db01157f7a9fccba36051aac947dd7418343dadc6c4120c7f9141b7f26fd6001e1ffec0330645f33a60ab71fb67225
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.14.
|
1
|
+
0.14.15
|
data/coderunner.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: coderunner 0.14.
|
5
|
+
# stub: coderunner 0.14.15 ruby lib
|
6
6
|
# stub: ext/extconf.rb
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "coderunner"
|
10
|
-
s.version = "0.14.
|
10
|
+
s.version = "0.14.15"
|
11
11
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
13
13
|
s.require_paths = ["lib"]
|
14
14
|
s.authors = ["Edmund Highcock"]
|
15
|
-
s.date = "2014-04-
|
15
|
+
s.date = "2014-04-10"
|
16
16
|
s.description = "CodeRunner is a framework for the automated running and analysis of simulations. It automatically generates any necessary input files, organises the output data and analyses it. Because it is a modular system, it can easily be customised to work with any system and any simulation code. One of its greatest strengths is that it is independent of any one simulation code; thus it can easily plot and compare the data from different codes."
|
17
17
|
s.email = "edmundhighcock@sourceforge.net"
|
18
18
|
s.executables = ["coderunner"]
|
data/lib/coderunner.rb
CHANGED
@@ -369,6 +369,7 @@ EOF
|
|
369
369
|
end
|
370
370
|
|
371
371
|
def self.run_script
|
372
|
+
set_default_command_options_from_command_line
|
372
373
|
if DEFAULT_COMMAND_OPTIONS[:Z]
|
373
374
|
DEFAULT_COMMAND_OPTIONS.absorb(eval(DEFAULT_COMMAND_OPTIONS[:Z]))
|
374
375
|
puts "Begin Output"
|
@@ -389,7 +390,7 @@ $stderr.puts unless $has_put_startup_message_for_code_runner
|
|
389
390
|
$has_put_startup_message_for_code_runner = true
|
390
391
|
|
391
392
|
|
392
|
-
CodeRunner.set_default_command_options_from_command_line
|
393
|
+
#CodeRunner.set_default_command_options_from_command_line
|
393
394
|
|
394
395
|
do_profile = (ENV['CODE_RUNNER_PROFILE'] and ENV['CODE_RUNNER_PROFILE'].size > 0) ? ENV['CODE_RUNNER_PROFILE'] : false
|
395
396
|
|
@@ -564,10 +564,11 @@ EOF
|
|
564
564
|
runs = runner.filtered_ids.map do |id|
|
565
565
|
eputs id
|
566
566
|
run = runner.run_list[id].dup
|
567
|
+
|
568
|
+
run.resubmit_id = run.id
|
567
569
|
if copts[:smart_resubmit_name]
|
568
570
|
eputs "Smart name"
|
569
571
|
run.set(:naming_pars, [:resubmit_id])
|
570
|
-
run.resubmit_id = run.id
|
571
572
|
end
|
572
573
|
run.update_submission_parameters(copts[:p][0], false)
|
573
574
|
run.run_name = nil unless copts[:rerun]
|
@@ -712,6 +713,8 @@ EOF
|
|
712
713
|
copts[:h] = :component
|
713
714
|
when :r
|
714
715
|
copts[:h] = :real
|
716
|
+
else
|
717
|
+
copts[:h] = :real
|
715
718
|
end
|
716
719
|
|
717
720
|
copts[:Y] ||= DEFAULT_COMMAND_OPTIONS[:Y] if DEFAULT_COMMAND_OPTIONS[:Y]
|
data/lib/coderunner/run.rb
CHANGED
@@ -524,6 +524,7 @@ EOF
|
|
524
524
|
evaluate_defaults_file(defaults_file_name)
|
525
525
|
end
|
526
526
|
return unless parameters
|
527
|
+
@parameter_hash_string = parameters
|
527
528
|
raise "parameters: #{parameters.inspect} must be a string which evaluates to a hash" unless parameters.class == String and parameters = eval(parameters) and parameters.class == Hash # parameters.class == String and parameters =~ /\S/
|
528
529
|
@parameter_hash = parameters
|
529
530
|
parameters.each do |var, value|
|
@@ -823,7 +824,7 @@ to your code module.
|
|
823
824
|
|
824
825
|
@run_info = rcp.run_info || [] # Run info can optionally be defined in the code module.
|
825
826
|
# ep @run_info
|
826
|
-
@run_info = rcp.run_info + ([:preamble, :job_no, :running, :id, :status, :sys, :is_component, :naming_pars, :run_name, :resubmit_id, :real_id, :component_runs, :parameter_hash, :output_file, :error_file, :extra_files] + SUBMIT_OPTIONS) #.each{|v| RUN_INFO.push v} unless RUN_INFO.include? :job_no
|
827
|
+
@run_info = rcp.run_info + ([:preamble, :job_no, :running, :id, :status, :sys, :is_component, :naming_pars, :run_name, :resubmit_id, :real_id, :component_runs, :parameter_hash, :parameter_hash_string, :output_file, :error_file, :extra_files] + SUBMIT_OPTIONS) #.each{|v| RUN_INFO.push v} unless RUN_INFO.include? :job_no
|
827
828
|
@all = (rcp.variables + rcp.results + rcp.run_info) #.each{|v| ALL.push v}
|
828
829
|
# ep "GOT HERE"
|
829
830
|
(@all + [:directory, :run_name, :modlet, :relative_directory]).each{|var| send(:attr_accessor, var)}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coderunner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edmund Highcock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphkit
|