y_petri 2.1.21 → 2.1.22

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: 968af3ca03a671e924f06ba045436a083dadf0dd
4
- data.tar.gz: 319f815336ff5eb4a10951dbf05e208de70cd050
3
+ metadata.gz: 03002f5fdf4953240fbaf2664c21bc8185df720e
4
+ data.tar.gz: fdf0076cb4c8bab4bd1c4d8f15a1405dc56e27a3
5
5
  SHA512:
6
- metadata.gz: 1fe6040d4878a167994f898a8ad10cd15d38b01d6c74027771815a8fb8350bc04201fa65eb7ce1f8966731a721c4b5c4bdf7c0003b62b399ca87fc5bd35c159a
7
- data.tar.gz: ce505521d3b161a88c88a0ddce7abf8efe03be32c3017abef14242a36204d03ede612d8aabe18ea40a36ca07bc185f6c91ad3805d75ce2d3a7cfea15e4310706
6
+ metadata.gz: 072b911c19ef66ee8bd490d507d957c30ef9e5e763db8802003e8ecf4ae6edb9478e5163151ac915307594ac248e84c37c3c01de5d907a1926a361d93098a601
7
+ data.tar.gz: a4d28dd80bed1e35f106675826f44818ada27a1faabaf22bd6e12e98d7cf111e8c7d585294c64f31328cfcd33d413860724aa7ff8e4e65bc6439b025a9f996bb
@@ -249,11 +249,11 @@ module YPetri::Agent::SimulationRelated
249
249
 
250
250
  # Write the recorded samples in a file (csv).
251
251
  #
252
- def print_recording( filename=nil )
252
+ def print_recording( filename=nil, **nn )
253
253
  if filename.nil? then
254
- simulation.recording.print
254
+ simulation.recording.print **nn
255
255
  else
256
- File.open filename, "w" do |f| f << print_recording end
256
+ File.open filename, "w" do |f| f << print_recording( **nn ) end
257
257
  end
258
258
  end
259
259
 
@@ -261,5 +261,6 @@ class YPetri::Net::DataSet < Hash
261
261
  records.each { |record|
262
262
  record.print_as_line precision: precision, distance: distance
263
263
  }
264
+ return nil
264
265
  end
265
266
  end # YPetri::Net::Dataset
@@ -1,4 +1,4 @@
1
1
  module YPetri
2
- VERSION = "2.1.21"
2
+ VERSION = "2.1.22"
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.21
4
+ version: 2.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - boris