y_petri 2.1.20 → 2.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 925fd4bc4059984743c3a79a05161f8318bb664b
4
- data.tar.gz: 9df7ce42d2a6d90d196b9b0325ce9f547892b228
3
+ metadata.gz: 968af3ca03a671e924f06ba045436a083dadf0dd
4
+ data.tar.gz: 319f815336ff5eb4a10951dbf05e208de70cd050
5
5
  SHA512:
6
- metadata.gz: d6e49798a1982ffee6b72a5fe210cce73cb30a2dfa32b745cad5d5be27160600cecb6449a786bcff335dfa3b49d3132655c35fb88094716df430c3b66e43c0b9
7
- data.tar.gz: 56705a76926aa07e3116038dd216427d4bc07dfc512422d9fc354087b8103e6e67a3722f5b80cbec7075a7d194c77bc1dde1ae57e8005f40f03c5a78cc7c6c4a
6
+ metadata.gz: 1fe6040d4878a167994f898a8ad10cd15d38b01d6c74027771815a8fb8350bc04201fa65eb7ce1f8966731a721c4b5c4bdf7c0003b62b399ca87fc5bd35c159a
7
+ data.tar.gz: ce505521d3b161a88c88a0ddce7abf8efe03be32c3017abef14242a36204d03ede612d8aabe18ea40a36ca07bc185f6c91ad3805d75ce2d3a7cfea15e4310706
data/README.md CHANGED
@@ -96,3 +96,4 @@ So much for the demo for now! Thanks for trying YPetri!
96
96
  3. Commit your changes (`git commit -am 'Added some feature'`)
97
97
  4. Push to the branch (`git push origin my-new-feature`)
98
98
  5. Create new Pull Request
99
+ core_ext/array/
@@ -251,11 +251,9 @@ module YPetri::Agent::SimulationRelated
251
251
  #
252
252
  def print_recording( filename=nil )
253
253
  if filename.nil? then
254
- puts simulation.recording.to_csv
254
+ simulation.recording.print
255
255
  else
256
- File.open( filename, "w" ) do |f|
257
- f << simulation.recording.to_csv
258
- end
256
+ File.open filename, "w" do |f| f << print_recording end
259
257
  end
260
258
  end
261
259
 
@@ -258,6 +258,8 @@ class YPetri::Net::DataSet < Hash
258
258
  def print precision: 4, distance: precision + 4
259
259
  features.labels.print_as_line precision: precision, distance: distance
260
260
  puts '-' * features.size * distance
261
- records.each.print_as_line precision: precision, distance: distance
261
+ records.each { |record|
262
+ record.print_as_line precision: precision, distance: distance
263
+ }
262
264
  end
263
265
  end # YPetri::Net::Dataset
@@ -1,4 +1,4 @@
1
1
  module YPetri
2
- VERSION = "2.1.20"
2
+ VERSION = "2.1.21"
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.20
4
+ version: 2.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - boris