y_petri 2.1.35 → 2.1.36

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: 3d88e40efa3c2cee59ebd5a38a1dfecd21f48439
4
- data.tar.gz: 979fdb33a2012231b5affebdbc7d418d35ae1a92
3
+ metadata.gz: 509f2defaf79d34c62eb0d964c3626fb49d87d2c
4
+ data.tar.gz: 192651ad32c9854c72182c637744e4e58e05233d
5
5
  SHA512:
6
- metadata.gz: 311804fbb0e5c4f3d133a1fda2faf115354a281e7f425e6c67044d9833bf47d6ffd4e11136a76db7c0869d0b15fda15b293a0e9079c6fd29f5d7c5de41e4ffe6
7
- data.tar.gz: 0c906da27c1b7f7d7cf8c47471b33b120821809f22077a09df184ec5186208fd587f57793c628d3ca752f2f8ef47b0c2f126580fc37a97865ae77e78e032b6bd
6
+ metadata.gz: 3663b4d86cc496f7ad09209f24dc64754cace4ddf456681bb5dbb4905f4cdaf6b319bd80ecd4d1da738c881e47a9da75e068592135d6af3bba2e159a6c5e2369
7
+ data.tar.gz: 02dc44901cdd06c634d2801d9b648186d67b17d3d52efdab31bfd097043af334b7dc4dabd72101958c77de9ae1765c42e562281c091441b9147df23119343672
@@ -32,10 +32,20 @@ module YPetri::Simulation::Timed
32
32
 
33
33
  delegate :sampling, to: :recorder
34
34
 
35
- # Reads the time range (initial_time..target_time) of the simulation.
35
+ # Reads the time range.
36
+ #
37
+ def flux ids_of_TS_transitions=nil
38
+ tt = TS_transitions()
39
+ return flux tt if ids_of_TS_transitions.nil?
40
+ TS_transitions( ids_of_TS_transitions ).map { |t|
41
+ flux_vector.column_to_a.fetch tt.index( t )
42
+ }
43
+ end
44
+
45
+ # Reads the time range (initial_time .. target_time) of the simulation.
36
46
  #
37
47
  def time_range
38
- initial_time..target_time
48
+ initial_time .. target_time
39
49
  end
40
50
 
41
51
  # Returns the settings pertaining to the Timed aspect of the simulation,
@@ -1,4 +1,4 @@
1
1
  module YPetri
2
- VERSION = "2.1.35"
2
+ VERSION = "2.1.36"
3
3
  DEBUG = false
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: y_petri
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.35
4
+ version: 2.1.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - boris