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 +4 -4
- data/README.md +1 -0
- data/lib/y_petri/agent/simulation_related.rb +2 -4
- data/lib/y_petri/net/data_set.rb +3 -1
- data/lib/y_petri/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 968af3ca03a671e924f06ba045436a083dadf0dd
|
4
|
+
data.tar.gz: 319f815336ff5eb4a10951dbf05e208de70cd050
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fe6040d4878a167994f898a8ad10cd15d38b01d6c74027771815a8fb8350bc04201fa65eb7ce1f8966731a721c4b5c4bdf7c0003b62b399ca87fc5bd35c159a
|
7
|
+
data.tar.gz: ce505521d3b161a88c88a0ddce7abf8efe03be32c3017abef14242a36204d03ede612d8aabe18ea40a36ca07bc185f6c91ad3805d75ce2d3a7cfea15e4310706
|
data/README.md
CHANGED
@@ -251,11 +251,9 @@ module YPetri::Agent::SimulationRelated
|
|
251
251
|
#
|
252
252
|
def print_recording( filename=nil )
|
253
253
|
if filename.nil? then
|
254
|
-
|
254
|
+
simulation.recording.print
|
255
255
|
else
|
256
|
-
File.open
|
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
|
|
data/lib/y_petri/net/data_set.rb
CHANGED
@@ -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
|
261
|
+
records.each { |record|
|
262
|
+
record.print_as_line precision: precision, distance: distance
|
263
|
+
}
|
262
264
|
end
|
263
265
|
end # YPetri::Net::Dataset
|
data/lib/y_petri/version.rb
CHANGED