rbbt-util 5.21.102 → 5.21.103
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/workflow/accessor.rb +2 -1
- data/lib/rbbt/workflow/step.rb +3 -3
- data/share/Rlib/plot.R +1 -1
- data/share/Rlib/util.R +1 -1
- data/share/rbbt_commands/workflow/example +1 -1
- data/share/rbbt_commands/workflow/info +12 -0
- 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: 14ea1d12f7ac8fe08dc04a5e46bcf7ab10d0a669
|
4
|
+
data.tar.gz: f11141d1270747aafef6293a845e8e62347ed716
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ac4fc17f5c9c56e4b7150247da0ea5cc8ff72417efec635c199548e52ff6230785401f8b712717ec504585f366258e005c6507810c194aa3ced1fba7bbaee28
|
7
|
+
data.tar.gz: 9f7937bf5f62c23c73ede5dc1326fc1ff1a34e98dc9032ed3d600907c3f4e20064e17cef3c6c53eb39a7e0a725e18c10f2ee71836d46519c70cbb859658f1314
|
@@ -808,7 +808,8 @@ module Workflow
|
|
808
808
|
_inputs = IndiferentHash.setup(_inputs.dup)
|
809
809
|
dep = dependency.call jobname, _inputs, real_dependencies
|
810
810
|
if Hash === dep
|
811
|
-
|
811
|
+
task_info = (dep[:task] && dep[:workflow]) ? dep[:workflow].task_info(dep[:task]) : nil
|
812
|
+
inputs = assign_dep_inputs({}, dep[:inputs], real_dependencies, task_info)
|
812
813
|
dep = dep[:workflow].job(dep[:task], dep[:jobname], inputs)
|
813
814
|
end
|
814
815
|
end
|
data/lib/rbbt/workflow/step.rb
CHANGED
@@ -283,11 +283,11 @@ class Step
|
|
283
283
|
|
284
284
|
def clean
|
285
285
|
status = []
|
286
|
-
status << "dirty" if done?
|
287
|
-
status << "not running" if
|
286
|
+
status << "dirty" if done? && dirty?
|
287
|
+
status << "not running" if ! done? && ! running?
|
288
288
|
status.unshift " " if status.any?
|
289
289
|
Log.medium "Cleaning step: #{path}#{status * " "}"
|
290
|
-
abort if
|
290
|
+
abort if ! done? && running?
|
291
291
|
Step.clean(path)
|
292
292
|
self
|
293
293
|
end
|
data/share/Rlib/plot.R
CHANGED
data/share/Rlib/util.R
CHANGED
@@ -615,7 +615,7 @@ rbbt.plot.matrix <- function(x, ...){
|
|
615
615
|
|
616
616
|
# Adapted from: https://rstudio-pubs-static.s3.amazonaws.com/13301_6641d73cfac741a59c0a851feb99e98b.html
|
617
617
|
rbbt.plot.venn <- function(data, a, ...) {
|
618
|
-
|
618
|
+
rbbt.require(VennDiagram)
|
619
619
|
group.matches <- function(data, fields) {
|
620
620
|
sub = data
|
621
621
|
for (i in 1:length(fields)) {
|
@@ -12,7 +12,7 @@ options = SOPT.setup <<EOF
|
|
12
12
|
|
13
13
|
Description
|
14
14
|
|
15
|
-
$ rbbt workflow
|
15
|
+
$ rbbt workflow example <workflow> [<task>] [<name>] -- [<task_options>]
|
16
16
|
|
17
17
|
Run workflow examples. You can define tasks and example names. You can also override task options
|
18
18
|
|
@@ -113,6 +113,17 @@ if messages and messages.any?
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
+
if status != :done && step.file('progress').exists?
|
117
|
+
progress = step.file('progress').yaml
|
118
|
+
str = Log.color(:magenta, "Progress") << ": "
|
119
|
+
if progress[:last_percent]
|
120
|
+
str << progress[:last_percent].to_s << "%"
|
121
|
+
else
|
122
|
+
str << progress[:ticks].to_s << " items"
|
123
|
+
end
|
124
|
+
puts str
|
125
|
+
end
|
126
|
+
|
116
127
|
if status == :error
|
117
128
|
puts Log.color(:magenta, "Backtrace") << ": "
|
118
129
|
puts Log.color_stack backtrace
|
@@ -155,4 +166,5 @@ if recursive
|
|
155
166
|
end
|
156
167
|
end
|
157
168
|
end
|
169
|
+
|
158
170
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.21.
|
4
|
+
version: 5.21.103
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|