rbbt-util 5.33.21 → 5.34.2

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
  SHA256:
3
- metadata.gz: 563841b942e1b0cf4a97bed6900bd51c96df63ec993d3a5280faadbf7b8eb753
4
- data.tar.gz: c2cd78f5dfe5061f97021fd2121dd415d7b6c36c1fef2fc9f496c2cc985e4c4d
3
+ metadata.gz: cebda38db6f69e3dafffde7a38d5b35c87ead40eee194d4f69563577673a19e8
4
+ data.tar.gz: 565788a963e37d0850fe14fe9877d644e05d1131d2c56fa27a78fac5e9081efe
5
5
  SHA512:
6
- metadata.gz: 6382e73cdb35ff7ab7dcd3de894a192353c39edef06ddaeb030ec376089b638acb0f62f468153433dfb0e3b0242a44146bfaeb1770ef35ee7175200caeea5e12
7
- data.tar.gz: '08b8ce8d556f25269c671b6307972669927b468975c77d188b572e2285627968989a2db68de7fa2983908cb7d4cf3a236f0908a78d3917ea46ad84f82c60f536'
6
+ metadata.gz: 63dc077571b4c7931ca6a29e880294462c0b1928fce06ae280702f343ba5b51bb383234524e8eb766963a516dd8a5ae8afe83433ac9f56e9e83f20b892cad971
7
+ data.tar.gz: a956cfeccbb20ced8cbee407159378e8b02490cced6fd56f83b3d62a7bbce9c3f27d0331ed4776fa3c7bf3e945c40e444c4fc409a3965ce2fcaef9c2ff7400d6
@@ -31,6 +31,7 @@ module HPC
31
31
  options.delete "detach"
32
32
  options.delete "jobname"
33
33
  options.delete "load_inputs"
34
+ options.delete "provenance"
34
35
 
35
36
  Log.high "Prepare for exec"
36
37
  prepare_for_execution(job)
@@ -56,7 +56,8 @@ module Misc
56
56
  ":" << obj.to_s
57
57
  when String
58
58
  if obj.length > 100
59
- "'" << obj.slice(0,30) << "<...#{obj.length}...>" << obj.slice(-10,30)<< "'"
59
+ digest = Misc.digest(obj)
60
+ "'" << obj.slice(0,30) << "<...#{obj.length} - #{digest[0..4]}...>" << obj.slice(-10,30)<< "'"
60
61
  else
61
62
  "'" << obj << "'"
62
63
  end
@@ -678,7 +678,7 @@ module Open
678
678
  if Open.exists? notification_file
679
679
  key = Open.read(notification_file).strip
680
680
  key = nil if key.empty?
681
- if key.include?("@")
681
+ if key && key.include?("@")
682
682
  to = from = key
683
683
  subject = "Wrote " << file
684
684
  message = "Content attached"
data/lib/rbbt/workflow.rb CHANGED
@@ -542,8 +542,17 @@ module Workflow
542
542
  step_path = step_path.call if Proc === step_path
543
543
  persist = input_values.nil? ? false : true
544
544
  persist = false
545
+
546
+ if ! (Path === step_path ? step_path.find : File.exists?(step_path)) && step_path.split("/").length == 3 && File.exists?(new_path = Rbbt.var.jobs[step_path].find)
547
+ step_path = new_path
548
+ end
549
+
545
550
  key = Path === step_path ? step_path.find : step_path
546
551
 
552
+ if ! File.exists?(step_path) && step_path.split("/").length == 3 && File.exists?(new_path = Rbbt.var.jobs[step_path].find)
553
+ step_path = new_path
554
+ end
555
+
547
556
  step = Step.new step_path, task, input_values, dependencies
548
557
 
549
558
  set_step_dependencies(step) unless dependencies
@@ -703,7 +712,15 @@ module Workflow
703
712
 
704
713
  def self.load_step(path)
705
714
  path = Path.setup(path.dup) unless Path === path
706
- path = path.find
715
+
716
+ if ! (Path === path ? path.exists? : File.exists?(path)) && path.split("/").length == 3
717
+ new_path = Rbbt.var.jobs[path]
718
+ if new_path.exists? || new_path.set_extension('info').exists?
719
+ path = new_path
720
+ end
721
+ end
722
+
723
+ path = path.find if Path === path
707
724
 
708
725
  begin
709
726
  _load_step(path)
data/share/Rlib/svg.R CHANGED
@@ -20,9 +20,11 @@ rbbt.SVG.extract <- function(plot, size=NULL, prefix=NULL, ...){
20
20
  resolution = 72 * (size/7)
21
21
 
22
22
  if (length(plot$theme) == 0) plot <- plot + theme_light();
23
+
23
24
  if (length(plot$theme$text) == 0) plot <- plot + theme(text = element_text(size=base.size));
24
25
 
25
- plot$theme$text$size = base.size
26
+ if (is.null(plot$theme$text$size))
27
+ plot$theme$text$size = base.size
26
28
 
27
29
  print(plot, type='cairo')
28
30
  mysvg <- grid.export(res=resolution, prefix=prefix, ...)
@@ -36,7 +36,7 @@ file = ARGV.shift
36
36
 
37
37
  $seen = []
38
38
  def get_step(file)
39
- file = File.expand_path(file)
39
+ file = File.expand_path(file) if File.exists?(file)
40
40
  file = file.sub(/\.(info|files)$/,'')
41
41
  $seen << file
42
42
  Workflow.load_step file
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.33.21
4
+ version: 5.34.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-03 00:00:00.000000000 Z
11
+ date: 2022-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake