coderunner 0.18.0 → 0.18.1
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/class_methods.rb +3 -2
- data/lib/coderunner/config.rb +1 -0
- data/lib/coderunner/system_modules/launcher.rb +2 -2
- 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: be8cb3569f72075a3e4edc3c5f3860723682d882
|
4
|
+
data.tar.gz: 221dbaea16f6d278187f558a703d33d941b09c46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f107ee359964005b8122ce90c89988b1c0a1604e53d399a65eab6c6bf339472f300454101d2a06ebf1f8b6f1d8bfc5280c1c2d65d93d505bbc44a8186333787e
|
7
|
+
data.tar.gz: 48f060d7c54ae4c2d4558db5b4496bdd8a52c1d0f867e62a0e03a246d6692cd197641c356a46417e25fbc4a6f08a7af1a12f2a3c5438dab8d6700fb31e0af778
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.18.
|
1
|
+
0.18.1
|
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.18.
|
5
|
+
# stub: coderunner 0.18.1 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.18.
|
10
|
+
s.version = "0.18.1"
|
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 = "2016-04-
|
15
|
+
s.date = "2016-04-03"
|
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", "coderunnerrepo"]
|
@@ -299,6 +299,7 @@ class CodeRunner
|
|
299
299
|
runner.make_film_from_lists(copts[:G], copts[:g], copts[:F])
|
300
300
|
end
|
301
301
|
|
302
|
+
# Deprecated
|
302
303
|
def self.generate_documentation(username = nil, copts = {})
|
303
304
|
ep 'username', username||=ENV['USER']
|
304
305
|
|
@@ -410,7 +411,7 @@ EOF
|
|
410
411
|
end
|
411
412
|
|
412
413
|
def self.launcher_directory
|
413
|
-
ENV['HOME'] + "/.coderunner/to_launch/#{
|
414
|
+
ENV['HOME'] + "/.coderunner/to_launch/#{global_options(:launcher)}"
|
414
415
|
end
|
415
416
|
|
416
417
|
def self.start_launcher(refresh, max_queue, copts={})
|
@@ -427,7 +428,7 @@ EOF
|
|
427
428
|
at_exit{FileUtils.rm_r tl}
|
428
429
|
FileUtils.makedirs tl
|
429
430
|
|
430
|
-
unless
|
431
|
+
unless global_options(:launcher) =~ /serial/
|
431
432
|
mutex = Mutex.new
|
432
433
|
processes= []
|
433
434
|
command_list = {}
|
data/lib/coderunner/config.rb
CHANGED
@@ -13,6 +13,7 @@ class CodeRunner
|
|
13
13
|
no_repo: true, # Disable CodeRunner repo, true for now as in development
|
14
14
|
simple_prompt: false, # If true have a less fancy prompt in interactive mode
|
15
15
|
non_interactive: false, # If true, don't prompt for feedback when executing commands. Use with caution.
|
16
|
+
launcher: nil, # To activate the launcher, set this to be a string. The launcher will use the folder ~/.coderunner/to_launch/GLOBAL_OPTIONS[:launcher]
|
16
17
|
}
|
17
18
|
|
18
19
|
class CodeRunner::ConfigError < StandardError
|
@@ -5,10 +5,10 @@ class CodeRunner
|
|
5
5
|
# an interactive session on a supercomputer.
|
6
6
|
module Launcher
|
7
7
|
def launcher_prefix
|
8
|
-
|
8
|
+
CodeRunner.global_options(:launcher)
|
9
9
|
end
|
10
10
|
def use_launcher
|
11
|
-
launcher_prefix
|
11
|
+
launcher_prefix
|
12
12
|
end
|
13
13
|
def queue_status_launcher
|
14
14
|
#%x[cat #{CodeRunner.launcher_directory}/queue_status.txt | grep sh] +
|
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.18.
|
4
|
+
version: 0.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edmund Highcock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphkit
|