rbbt-util 5.34.24 → 5.34.25

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: 7359f3a8ce8bde23107f23515557f47eb7bb65ee094c64419ba5542378af1c8c
4
- data.tar.gz: 0a030eb0b6f9648a60c11abaac383fe33b24845c288ddd7a28eb8e9aa8d8ac1c
3
+ metadata.gz: f1a0dc0772864a83c7c6b159d53dc1c5d95e7f58619c4e4b0c630e8240a621aa
4
+ data.tar.gz: c8a029debfd1ee7c820185aa1dead29575ecd173a1868692751c6a01dc7be01a
5
5
  SHA512:
6
- metadata.gz: dce1b81193d5d0d7ad86140e7287228b4a9d83fe99f08c4a431e34491d3c2a6057054cc9d80a76be9d4ac34b422c8203470d53579c4ba84bee8a804b6f12a2dd
7
- data.tar.gz: 5b1d4e2aa040b183a92ea7b3ccb45fef2e3467a7d94203fd5214a366cbc87bfd6944095888f68c0ca6c8da6d2442cd0f6685b381e4be2e5b68c07bc68365ae72
6
+ metadata.gz: b151561ce56b42af19160eff58a8f45be7fedd6226d960987111e8b9d1147802eb612f96b85a47ad849476b7d4520df457ed70e91e9528d67e9e03a6959f78c4
7
+ data.tar.gz: 60b1a486a88bd2c65a4c003130c7c81de42ce72446420797132d1047be2446fce74f7cb35c80a652a1f56dcc630ba6e32d7c991a524efeab85a05325aaae1024
@@ -101,6 +101,11 @@ module HPC
101
101
 
102
102
  task = Symbol === job.overriden ? job.overriden : job.task_name
103
103
 
104
+ #override_deps = job.overriden_deps.collect do |dep|
105
+ # name = [dep.workflow.to_s, dep.task_name] * "#"
106
+ # [name, dep.path] * "="
107
+ #end.uniq * ","
108
+
104
109
  if job.overriden?
105
110
  #override_deps = job.rec_dependencies.
106
111
  # select{|dep| Symbol === dep.overriden }.
@@ -568,7 +573,7 @@ env > #{batch_options[:fenv]}
568
573
  Misc.add_defaults options,
569
574
  :batch_dir => batch_dir,
570
575
  :inputs_dir => File.join(batch_dir, "inputs_dir"),
571
- :workflows => workflows_to_load.uniq * ","
576
+ :workflows => workflows_to_load.any? ? workflows_to_load.uniq * "," : nil
572
577
 
573
578
  options[:procpath_performance] ||= File.join(batch_dir, "procpath##{procpath.gsub(',', '#')}") if procpath
574
579
 
@@ -73,8 +73,10 @@ module Workflow
73
73
  return [] if dep == :skip || dep == 'skip'
74
74
 
75
75
  if not Step === dep
76
- located = Open.exists?(dep)
76
+ located = Open.exists?(dep) || Open.exists?(dep + '.info')
77
77
  dep = Workflow.load_step(dep)
78
+ else
79
+ located = true
78
80
  end
79
81
 
80
82
  dep.original_workflow ||= dep.workflow if dep.workflow
@@ -527,7 +527,7 @@ class Step
527
527
 
528
528
  def overriden?
529
529
  return true if @overriden
530
- return true if dependencies && dependencies.select{|dep| dep.overriden? }.any?
530
+ return true if dependencies && dependencies.select{|dep| TrueClass === dep.overriden }.any?
531
531
  info[:archived_info].each do |f,i|
532
532
  next if Symbol === i
533
533
  return true if i[:overriden] || i["overriden"]
@@ -31,6 +31,8 @@ module Workflow
31
31
 
32
32
  type = :step_array if file.split(".").last == 'as_step_array'
33
33
 
34
+ type = :number_array if file.split(".").last == 'as_number_array'
35
+
34
36
  type = :step_file if file.split(".").last == 'as_step_file'
35
37
 
36
38
  type = :step_file_array if file.split(".").last == 'as_step_file_array'
@@ -57,6 +59,9 @@ module Workflow
57
59
  when :step_array
58
60
  steps = Open.read(file).strip.split("\n").collect{|path| Workflow.load_step(path) }
59
61
  inputs[input.to_sym] = steps
62
+ when :number_array
63
+ numbers = Open.read(file).strip.split("\n").collect{|num| num.to_f }
64
+ inputs[input.to_sym] = numbers
60
65
  when :step
61
66
  steps = Open.read(file).strip.split("\n").collect{|path| Workflow.load_step(path) }
62
67
  inputs[input.to_sym] = steps.first
@@ -176,6 +181,8 @@ class Step
176
181
  when Step
177
182
  path = path + '.as_step_array'
178
183
  value = value.collect{|s| s.path }
184
+ when Numeric
185
+ path = path + '.as_number_array'
179
186
  end
180
187
 
181
188
  value = value * "\n"
data/lib/rbbt/workflow.rb CHANGED
@@ -437,8 +437,8 @@ module Workflow
437
437
  jobname_input = nil
438
438
  end
439
439
 
440
- if jobname_input && jobname && inputs[jobname_input].nil?
441
- inputs[jobname_input] = jobname
440
+ if jobname_input && inputs[jobname_input].nil?
441
+ inputs[jobname_input] = jobname || DEFAULT_NAME
442
442
  end
443
443
 
444
444
  real_inputs = {}
@@ -503,7 +503,7 @@ module Workflow
503
503
  when :not_overriden_dep
504
504
  job.overriden = true if has_overriden_inputs || true_overriden_deps.any?
505
505
  else
506
- job.overriden = true if has_overriden_inputs || overriden_deps.any?
506
+ job.overriden = true if has_overriden_inputs || true_overriden_deps.any?
507
507
  end
508
508
 
509
509
  job.real_inputs = real_inputs.keys
@@ -61,7 +61,8 @@ class Step
61
61
  else
62
62
  begin
63
63
  Log.debug "Issuing SLURM job for #{self.path}"
64
- @batch_job_id, @batch_job_dir = HPC::BATCH_MODULE.orchestrate_job(self, SOPT::GOT_OPTIONS.merge($slurm_options))
64
+ #@batch_job_id, @batch_job_dir = HPC::BATCH_MODULE.orchestrate_job(self, SOPT::GOT_OPTIONS.merge($slurm_options))
65
+ @batch_job_id, @batch_job_dir = HPC::BATCH_MODULE.orchestrate_job(self, $slurm_options)
65
66
  if no_load
66
67
  self
67
68
  else
@@ -61,7 +61,8 @@ class Step
61
61
  else
62
62
  begin
63
63
  Log.debug "Issuing SLURM job for #{self.path}"
64
- @batch_job_id, @batch_job_dir = HPC::BATCH_MODULE.orchestrate_job(self, SOPT::GOT_OPTIONS.merge($slurm_options))
64
+ #@batch_job_id, @batch_job_dir = HPC::BATCH_MODULE.orchestrate_job(self, SOPT::GOT_OPTIONS.merge($slurm_options))
65
+ @batch_job_id, @batch_job_dir = HPC::BATCH_MODULE.orchestrate_job(self, $slurm_options)
65
66
  if no_load
66
67
  self
67
68
  else
@@ -61,7 +61,8 @@ class Step
61
61
  else
62
62
  begin
63
63
  Log.debug "Issuing SLURM job for #{self.path}"
64
- @batch_job_id, @batch_job_dir = HPC::BATCH_MODULE.orchestrate_job(self, SOPT::GOT_OPTIONS.merge($slurm_options))
64
+ #@batch_job_id, @batch_job_dir = HPC::BATCH_MODULE.orchestrate_job(self, SOPT::GOT_OPTIONS.merge($slurm_options))
65
+ @batch_job_id, @batch_job_dir = HPC::BATCH_MODULE.orchestrate_job(self, $slurm_options)
65
66
  if no_load
66
67
  self
67
68
  else
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.34.24
4
+ version: 5.34.25
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-12-09 00:00:00.000000000 Z
11
+ date: 2022-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake