From d2e568e12cc5b7ee90b622581171510fc8b90fa0 Mon Sep 17 00:00:00 2001 From: Georgi Petrov <32372905+G-D-Petrov@users.noreply.github.com> Date: Tue, 17 Dec 2024 12:54:51 +0200 Subject: [PATCH] Fix error during publishing (#2074) #### Reference Issues/PRs #### What does this implement or fix? ASV has started writing `np.nan`s to the `JSON`s. When we try to evaluate them during publishing, it fails because they are not defined. This PRs defines them as was done for `np.inf ` in a previous PR #### Any other comments? #### Checklist
Checklist for code changes... - [ ] Have you updated the relevant docstrings, documentation and copyright notice? - [ ] Is this contribution tested against [all ArcticDB's features](../docs/mkdocs/docs/technical/contributing.md)? - [ ] Do all exceptions introduced raise appropriate [error messages](https://docs.arcticdb.io/error_messages/)? - [ ] Are API changes highlighted in the PR description? - [ ] Is the PR labelled as enhancement or bug so it appears in autogenerated release notes?
--- build_tooling/transform_asv_results.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_tooling/transform_asv_results.py b/build_tooling/transform_asv_results.py index cd5c4418f2..a464f846e4 100644 --- a/build_tooling/transform_asv_results.py +++ b/build_tooling/transform_asv_results.py @@ -7,7 +7,9 @@ """ import pandas as pd -from numpy import inf + +# Importing inf and nan so they can be evaluated correctly during extraction +from numpy import inf, nan from arcticdb.storage_fixtures.s3 import real_s3_from_environment_variables import json from pathlib import Path