diff --git a/src/caosadvancedtools/table_json_conversion/export_import_xlsx.py b/src/caosadvancedtools/table_json_conversion/export_import_xlsx.py index 0fe5d9d877bcb074b6e03d9fbe03766ede81a508..ea18a374d761945b29668538098a8cf1e6a9c2f2 100644 --- a/src/caosadvancedtools/table_json_conversion/export_import_xlsx.py +++ b/src/caosadvancedtools/table_json_conversion/export_import_xlsx.py @@ -24,18 +24,24 @@ Utilities for automatically exporting and importing data to and from xlsx. import json import tempfile import warnings +import logging from typing import Union from pathlib import Path import linkahead from linkahead.common.models import Container from linkahead import execute_query -from linkahead.high_level_api import convert_to_python_object from ..json_schema_exporter import JsonSchemaExporter, merge_schemas from .table_generator import XLSXTemplateGenerator from .fill_xlsx import fill_template +# The high_level_api import would normally warn about the API being +# experimental. We know this, so suppress the warning. +logging.disable(logging.WARNING) +from linkahead.high_level_api import convert_to_python_object # noqa: E402, pylint: disable=wrong-import-position +logging.disable(logging.NOTSET) + def _generate_jsonschema_from_recordtypes(recordtypes: list, out_path: Union[str, Path] = None) -> dict: