rbbt-util 5.26.145 → 5.26.146

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: 8dc18db865b5d2c8f5dc3675f19e5a4da5ceb46ed93e96703cf62c49ea3e40c6
4
- data.tar.gz: ae53252c8c9c44b522ce935fcd73a3c431127a3f736479e07386750b001d9f63
3
+ metadata.gz: 6f8d0361a7bc2ba9a9f0592163c75412323e05f8176fccfc2b26449222a755c7
4
+ data.tar.gz: '031648bb9feb9b389f8d79f1a0b9fbe2975417116a30449165f09edf34cb627d'
5
5
  SHA512:
6
- metadata.gz: cc94ed4b99f51c5d75874f6ad86cd5951e12a6f6f2771ebb33009a1eec36bc8beb26e2d3b8c4cafc73d7bb756fc88989530e3a6001fa00c8606d88a286d8e4a6
7
- data.tar.gz: 1c9a9777b74a3a3d5052fa445efd6980eae8dba069f1c3f7791e4846bb972c694cb495c44b139c209e95d0c030fc230ee10c0a611a4fdd9768b27f414e2bc0f2
6
+ metadata.gz: '094371d751166f66599f75f7e9199602130110343df39a0872327650b1198a042abcbf469da8ea78945323aeee5a7cfbd4ab8f7ad3a62cd97c9760bc4be5a7db'
7
+ data.tar.gz: 364b2612168f4223cd3752409c5dd8e6e678b6dc0d047c47c95579588f097ff8bc2b40f9caacc034bb2a0aceb52eacf5d174a88429ad4dd6c16014f128c5087c
@@ -267,8 +267,6 @@ EOF
267
267
  # Save exit status
268
268
  exit_status=$?
269
269
 
270
- # Clean job.id, since we are done
271
- rm #{fjob}
272
270
  EOF
273
271
 
274
272
  # CODA
@@ -315,13 +313,13 @@ singularity exec -e -C -H "$CONTAINER_DIR" "$SINGULARITY_IMG" rm -v /dev/shm/sem
315
313
 
316
314
 
317
315
  # Clean container directory
318
- if [ $exit_status == '0' -a $sync_es == '0' ]; then
316
+ #if [ $exit_status == '0' -a $sync_es == '0' ]; then
319
317
  singularity exec -e -C -H "$CONTAINER_DIR" "$SINGULARITY_IMG" rbbt system clean -f &>> #{fsync}
320
318
  singularity exec -e -C -H "$CONTAINER_DIR" "$SINGULARITY_IMG" rm -Rfv .rbbt/var/jobs &>> #{fsync}
321
319
  singularity exec -e -C -H "$CONTAINER_DIR" "$SINGULARITY_IMG" rm -Rfv tmp/ &>> #{fsync}
322
- else
323
- echo "ERROR: Process failed or results could not sync correctly. Contain directory not purged" &>> #{fsync}
324
- fi
320
+ #else
321
+ # echo "ERROR: Process failed or results could not sync correctly. Contain directory not purged" &>> #{fsync}
322
+ #fi
325
323
  EOF
326
324
  else
327
325
  coda +=<<-EOF
@@ -531,7 +529,7 @@ EOF
531
529
  end
532
530
  end
533
531
 
534
- def relay(job, options={})
532
+ def self.relay(job, options={})
535
533
  options = Misc.add_defaults options, :target => 'mn1', :search_path => 'user'
536
534
  done_deps = job.dependencies.select do |dep|
537
535
  dep.done?
@@ -411,7 +411,8 @@ class Step
411
411
 
412
412
  set_info :dependencies, dependencies.collect{|dep| [dep.task_name, dep.name, dep.path]}
413
413
 
414
- set_info :config_keys, (Rbbt::Config::GOT_KEYS - config_keys_pre).uniq
414
+ config_keys = Rbbt::Config::GOT_KEYS[config_keys_pre.length..-1]
415
+ set_info :config_keys, config_keys
415
416
 
416
417
  if result.nil? && File.exists?(self.tmp_path) && ! File.exists?(self.path)
417
418
  Open.mv self.tmp_path, self.path
@@ -2,8 +2,10 @@ require File.join(File.expand_path(File.dirname(__FILE__)), '..', 'test_helper.r
2
2
  require 'rbbt/hpc'
3
3
  require 'rbbt/workflow'
4
4
 
5
- class TestHPC < Test::Unit::TestSuite
5
+
6
+ class TestHPC < Test::Unit::TestCase
6
7
  def test_relay
8
+
7
9
  Log.severity = 0
8
10
  Workflow.require_workflow "Translation"
9
11
  job = Translation.job(:translate, nil, :genes => %w(TP53 KRAS))
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.26.145
4
+ version: 5.26.146
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-17 00:00:00.000000000 Z
11
+ date: 2020-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake