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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 552cc55adf8fe2641d93a6c2dd9c7c8894e53a64
4
- data.tar.gz: f762f96ae17cf69f718c5eb15da13683fda1f99d
3
+ metadata.gz: 14ea1d12f7ac8fe08dc04a5e46bcf7ab10d0a669
4
+ data.tar.gz: f11141d1270747aafef6293a845e8e62347ed716
5
5
  SHA512:
6
- metadata.gz: 53039d9cb4b69653def0d272fe3e8a6d45b058fc7123e1f79c58279d5b217e2de454c49cacee8353b8d262a603507012b7f8b4fc75e716c805df1a14155dfdf6
7
- data.tar.gz: 38473fb2bd31541c0c745886c710bc484ce9b2ccd38f92af5bb1b8a85ea78a190401e046df9bf8c7f0cd6526de06aa1683dc1d2f2e9a2e82e5de4d5bd4ca76e6
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
- inputs = assign_dep_inputs({}, dep[:inputs], real_dependencies, dep[:workflow].task_info(dep[:task]))
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
@@ -283,11 +283,11 @@ class Step
283
283
 
284
284
  def clean
285
285
  status = []
286
- status << "dirty" if done? and dirty?
287
- status << "not running" if not done? and not running?
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 not done? and running?
290
+ abort if ! done? && running?
291
291
  Step.clean(path)
292
292
  self
293
293
  end
data/share/Rlib/plot.R CHANGED
@@ -1,4 +1,4 @@
1
- library(ggplot2)
1
+ rbbt.require('ggplot2')
2
2
 
3
3
  geom_entity <- function (real.geom = NULL, mapping = NULL, data = NULL, stat = "identity",
4
4
  position = "identity", ...) {
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
- library(VennDiagram)
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 exmaple <workflow> [<task>] [<name>] -- [<task_options>]
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.102
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-10-30 00:00:00.000000000 Z
11
+ date: 2017-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake