coderunner 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/coderunner.gemspec +2 -2
- data/lib/coderunner/instance_methods.rb +5 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.12.
|
1
|
+
0.12.1
|
data/coderunner.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "coderunner"
|
8
|
-
s.version = "0.12.
|
8
|
+
s.version = "0.12.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Edmund Highcock"]
|
12
|
-
s.date = "2013-03-
|
12
|
+
s.date = "2013-03-19"
|
13
13
|
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."
|
14
14
|
s.email = "edmundhighcock@sourceforge.net"
|
15
15
|
s.executables = ["coderunner"]
|
@@ -1113,7 +1113,9 @@ Conditions contain a single = sign: #{conditions}
|
|
1113
1113
|
#########################
|
1114
1114
|
run.job_no = get_new_job_no(old_job_nos) unless run.job_no.kind_of? Integer # (if the execute command does not return the job number, look for it manually)
|
1115
1115
|
# eputs 'run.job_no', run.job_no
|
1116
|
+
run.output_file = nil # reset the output file
|
1116
1117
|
run.output_file # Sets the output_file on first call
|
1118
|
+
run.error_file = nil # reset the output file
|
1117
1119
|
run.error_file # Sets the error_file on first call
|
1118
1120
|
run.write_info
|
1119
1121
|
eputs "Submitted run: #{run.run_name}"
|
@@ -1134,6 +1136,7 @@ Conditions contain a single = sign: #{conditions}
|
|
1134
1136
|
FileUtils.makedirs('job_chain_files')
|
1135
1137
|
@id_list = runs.map{|run| run.id}
|
1136
1138
|
|
1139
|
+
#@executable ||= runs[0].executable
|
1137
1140
|
@submission_script = script
|
1138
1141
|
# A hook... default is to do nothing
|
1139
1142
|
@submission_script = @run_class.modify_job_script(self, runs, @submission_script)
|
@@ -1179,10 +1182,12 @@ Conditions contain a single = sign: #{conditions}
|
|
1179
1182
|
end
|
1180
1183
|
|
1181
1184
|
def executable_name
|
1185
|
+
return 'job_chain' unless @executable
|
1182
1186
|
File.basename(@executable)
|
1183
1187
|
end
|
1184
1188
|
|
1185
1189
|
def executable_location
|
1190
|
+
return '' unless @executable
|
1186
1191
|
File.dirname(@executable)
|
1187
1192
|
end
|
1188
1193
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coderunner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: graphkit
|