Skip to content

Releases: HEPData/hepdata-converter

0.3.0 Release

06 Nov 15:24
4ba4845
Compare
Choose a tag to compare

What's Changed

New Contributors

  • @20DM made their first contribution in #53

Full Changelog: 0.2.3...0.3.0

0.2.3 Release

01 Oct 09:54
Compare
Choose a tag to compare

This release improves the display of labels in the ROOT export, following the transition to Python 3. Previous versions 0.2.1 and 0.2.2 displayed labels as b'label'. This version removes the b and the surrounding quote marks. As with version 0.2.1 and version 0.2.2, it is recommended to use this release with the Docker image hepdata/hepdata-converter:0.2.0.

0.2.2 Release

30 Sep 20:25
Compare
Choose a tag to compare

This release fixes a bug in version 0.2.1 where an exception 'TypeError: can only concatenate str (not "bytes") to str' was raised when the hepdata_doi option is passed as an optional argument to the convert function, as done in the code for the HEPData web app. As with version 0.2.1, it is recommended to use this release with the Docker image hepdata/hepdata-converter:0.2.0.

0.2.1 Release

24 Sep 22:19
Compare
Choose a tag to compare

This is the first release for Python 3 and it drops support for Python 2. It is recommended to use this release with the Docker image hepdata/hepdata-converter:0.2.0, based on the Docker image rootproject/root:6.22.02-ubuntu20.04, which contains ROOT v6.22/02, Python v3.8.2, YODA v1.8.3, and hepdata-validator v0.2.2. However, the release can be used without Docker if these dependencies are installed independently.

0.1.35 Release

05 Mar 19:32
Compare
Choose a tag to compare

This release is compatible with the new hepdata-validator v0.2.1, which adds versioning of JSON schema. By default, the hepdata-converter will validate using the latest JSON schema available in the hepdata-validator. However, an option can be passed via the CLI or the convert function to use an older JSON schema version. Updates have also been made for YODA v1.7.7 and PyYAML v5.3.

Support has been added for a "Custom Rivet identifier" as a qualifier of a YAML data file, which will override the default value in the YODA export. The bin number written in the ErrorBreakdown annotation now excludes bins with non-numeric dependent variable values. Improvements to the PyPI release have been made and several small fixes to the conversion code have also been made, such as:

  • Allow for the possibility of a negative symerror in CSV writer.
  • Allow for two independent variables with different names when transforming a square matrix in oldhepdata parser.
  • Check number of y values does not exceed number of x values in YODA writer.
  • Remove $ and \ characters from table names as filenames or directories in CSV and ROOT writers.
  • Account for the case of a symerror given as an empty string in CSV writer.
  • Allow for the possibility of Unicode characters in error values for ROOT and YODA writers.
  • Improve use of newline characters in YODA output format.
  • Skip defining histogram bins for non-numeric y values in ROOT writer.

0.1.34 Release

26 Nov 16:31
Compare
Choose a tag to compare
  • yoda writer: write uncertainty breakdown as ErrorBreakdown annotation (thanks to Louie Corpe).
  • array writer: add process_error_labels() to ensure uniqueness, used by CSV/ROOT/YODA writers.
  • root writer: improve code for case of unordered or non-overlapping bins.
  • root writer: demand all bins have 'low' and 'high' before writing ROOT histogram.
  • root/yoda writer: convert numbers given as strings to floats.
  • docs: refinements to Docker installation instructions.
  • oldhepdata parser: keep values and errors as strings (no float conversion) to maintain precision.
  • root/yoda writer: treat one-sided errors (HEPData/hepdata#122) as numerical zeros.
  • root writer: use ZLIB (not LZ4) compression for better compatibility with older ROOT versions.
  • docs: pin matplotlib<3.0.0 in setup.py to fix "Read the Docs" build.
  • oldhepdata parser: allow one-sided errors (HEPData/hepdata#122) given as '-'.
  • csv writer: use default quotechar='"' and quoting=csv.QUOTE_MINIMAL.
  • hepdata-converter-docker: upgrade to ROOT v6.14/06 and YODA v1.7.3.
  • testdata: update all test data files to account for all converter changes above.
  • global: version bump to 0.1.34.

Signed-off-by: Graeme Watt [email protected]

0.1.33 Release

20 Jul 12:27
Compare
Choose a tag to compare
  • Same as 0.1.32 Release but edited .travis.yml and bumped version in attempt to fix automatic PyPI upload.

0.1.32 Release

19 Jul 15:03
Compare
Choose a tag to compare
  • oldhepdata: fix a bug calculating npts if a matrix with no x-axis.
  • oldhepdata: catch an error if *qual line without values.
  • oldhepdata: print line if error doesn't match expected pattern.
  • oldhepdata: check for presence of *xheader and *yheader before *data line.
  • oldhepdata: demand whitespace after value if asymmetric first error.
  • oldhepdata: use deepcopy to avoid YAML anchors/references when transforming a square matrix (thanks to Tim Adye).
  • yaml parser: allow for a bug in PyYAML where numbers like 1e+04 are parsed as strings not as floats (see https://stackoverflow.com/a/30462009 ).
  • yaml parser: allow for empty YAML documents when defining table index.
  • writers: support table names containing "/" by replacing by "-" in filenames.
  • writers: allow for unicode characters in table headers.
  • root writer: fix bug if different error labels in different rows.
  • root writer: allow for numerical rounding when checking that errors are symmetric before writing a TGraph2DErrors object.
  • testdata: update for changes in format made in YODA v1.7.0.
  • docs: tidy up and improve documentation produced using Sphinx.
  • global: version bump to 0.1.32.

Signed-off-by: Graeme Watt [email protected]

0.1.31 Release

02 Aug 13:39
Compare
Choose a tag to compare
  • yaml: always use SafeLoader and SafeDumper or preferably LibYAML classes.
  • yaml parser: check for documents with 'data_file' in submission.yaml:
    • Skip empty YAML documents, e.g. terminating "---" line.
    • Information about whole submission is optional as first YAML document.

Signed-off-by: Graeme Watt [email protected]

0.1.30 Release

15 May 16:11
Compare
Choose a tag to compare
  • root writer: use get_hist_classes method instead of _hist_classes attribute
  • root writer: don't write a graph object if no numerical data points
  • oldhepdata parser: print line if mismatch in data entry elements
  • oldhepdata parser: remove 'stat' label from single errors and replace keyword 'energies'
  • yaml writer: write hepdata_doi and table_doi without !!python/unicode
  • oldhepdata parser: allow absence of 'location', 'description', or record_ids

Signed-off-by: Graeme Watt [email protected]