Skip to content

Commit

Permalink
yoda writer: remove space in table name written as Title
Browse files Browse the repository at this point in the history
* avoids bug in YODA 1.6.0 (to be fixed in next release).
* bump version number to 0.1.22.

Signed-off-by: Graeme Watt [email protected]
  • Loading branch information
GraemeWatt committed Apr 28, 2016
1 parent 4d40a38 commit 86dca03
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions hepdata_converter/testsuite/testdata/yoda/full.yoda
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BEGIN YODA_SCATTER2D /
Path=/
Title=Table 1
Title=Table1
Type=Scatter2D
# xval xerr- xerr+ yval yerr- yerr+
7.000000e+03 0.000000e+00 0.000000e+00 2.540000e+01 3.382307e+00 3.590265e+00
Expand All @@ -10,7 +10,7 @@ END YODA_SCATTER2D

BEGIN YODA_SCATTER3D /
Path=/
Title=Table 2
Title=Table2
Type=Scatter3D
# xval xerr- xerr+ yval yerr- yerr+ zval zerr- zerr+
1.200000e+02 0.000000e+00 0.000000e+00 4.000000e+02 0.000000e+00 0.000000e+00 2.229000e-03 0.000000e+00 0.000000e+00
Expand Down Expand Up @@ -47,7 +47,7 @@ END YODA_SCATTER3D

BEGIN YODA_SCATTER2D /
Path=/
Title=Table 3
Title=Table3
Type=Scatter2D
# xval xerr- xerr+ yval yerr- yerr+
3.000000e+01 3.000000e+01 3.000000e+01 7.000000e+03 1.102935e+03 1.102935e+03
Expand All @@ -58,7 +58,7 @@ END YODA_SCATTER2D

BEGIN YODA_SCATTER2D /
Path=/
Title=Table 4
Title=Table4
Type=Scatter2D
# xval xerr- xerr+ yval yerr- yerr+
7.000000e+01 2.000000e+01 2.000000e+01 9.930000e+03 3.421929e+03 3.421929e+03
Expand All @@ -68,7 +68,7 @@ END YODA_SCATTER2D

BEGIN YODA_SCATTER2D /
Path=/
Title=Table 5
Title=Table5
Type=Scatter2D
# xval xerr- xerr+ yval yerr- yerr+
2.500000e-01 2.500000e-01 2.500000e-01 1.300000e+05 6.931493e+04 6.931493e+04
Expand All @@ -79,7 +79,7 @@ END YODA_SCATTER2D

BEGIN YODA_SCATTER2D /
Path=/
Title=Table 8
Title=Table8
Type=Scatter2D
# xval xerr- xerr+ yval yerr- yerr+
2.350000e+02 1.500000e+01 1.500000e+01 1.050000e+04 4.802083e+03 4.802083e+03
Expand All @@ -89,7 +89,7 @@ END YODA_SCATTER2D

BEGIN YODA_SCATTER2D /
Path=/
Title=Table 9
Title=Table9
Type=Scatter2D
# xval xerr- xerr+ yval yerr- yerr+
2.125000e+02 1.250000e+01 1.250000e+01 0.000000e+00 0.000000e+00 0.000000e+00
Expand All @@ -108,7 +108,7 @@ END YODA_SCATTER2D

BEGIN YODA_SCATTER2D /
Path=/
Title=Table 9
Title=Table9
Type=Scatter2D
# xval xerr- xerr+ yval yerr- yerr+
2.125000e+02 1.250000e+01 1.250000e+01 0.000000e+00 0.000000e+00 0.000000e+00
Expand All @@ -127,7 +127,7 @@ END YODA_SCATTER2D

BEGIN YODA_SCATTER2D /
Path=/
Title=Table 9
Title=Table9
Type=Scatter2D
# xval xerr- xerr+ yval yerr- yerr+
2.125000e+02 1.250000e+01 1.250000e+01 0.000000e+00 0.000000e+00 0.000000e+00
Expand All @@ -146,7 +146,7 @@ END YODA_SCATTER2D

BEGIN YODA_SCATTER2D /
Path=/
Title=Table 9
Title=Table9
Type=Scatter2D
# xval xerr- xerr+ yval yerr- yerr+
2.125000e+02 1.250000e+01 1.250000e+01 0.000000e+00 0.000000e+00 0.000000e+00
Expand Down
2 changes: 1 addition & 1 deletion hepdata_converter/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# this file ideally should only contain __version__ declaration, as anything else
# may break setup.py and PyPI uploads
__version__ = '0.1.21'
__version__ = '0.1.22'
2 changes: 1 addition & 1 deletion hepdata_converter/writers/yoda_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _write_table(self, data_out, table):
# qualifiers_marks_original = []
f = ObjectFactory(self.class_list, table.independent_variables, table.dependent_variables)
for graph in f.get_next_object():
graph.title = table.name
graph.title = table.name.replace(' ','')
graph.path = ''
yoda.core.writeYODA(graph, data_out)

Expand Down

0 comments on commit 86dca03

Please sign in to comment.