def log_qcodes_versions(logger: logging.Logger): """ Log the version information relevant to QCoDeS. This function logs the currently installed qcodes version, whether QCoDeS is installed in editable mode, and the installed versions of QCoDeS' requirements. """ qc_version = ii.get_qcodes_version() qc_e_inst = ii.is_qcodes_installed_editably() qc_req_vs = ii.get_qcodes_requirements_versions() logger.info(f'QCoDeS version: {qc_version}') logger.info(f'QCoDeS installed in editable mode: {qc_e_inst}') logger.info(f'QCoDeS requirements versions: {qc_req_vs}')
def log_qcodes_versions(logger: logging.Logger) -> None: """ Log the version information relevant to QCoDeS. This function logs the currently installed qcodes version, whether QCoDeS is installed in editable mode, the installed versions of QCoDeS' requirements, and the versions of all installed packages. """ qc_version = ii.get_qcodes_version() qc_e_inst = ii.is_qcodes_installed_editably() ipvs = ii.get_all_installed_package_versions() logger.info(f"QCoDeS version: {qc_version}") logger.info(f"QCoDeS installed in editable mode: {qc_e_inst}") logger.info(f"All installed package versions: {json.dumps(ipvs)}")
def test_get_qcodes_version(): assert ii.get_qcodes_version() == qc.version.__version__
"""Set up the main qcodes namespace.""" # flake8: noqa (we don't need the "<...> imported but unused" error) # config import warnings from typing import Any import qcodes.configuration as qcconfig from qcodes.logger.logger import conditionally_start_all_logging from qcodes.utils.helpers import add_to_spyder_UMR_excludelist from qcodes.utils.installation_info import get_qcodes_version __version__ = get_qcodes_version() config: qcconfig.Config = qcconfig.Config() conditionally_start_all_logging() # we dont want spyder to reload qcodes as this will overwrite the default station # instrument list and running monitor add_to_spyder_UMR_excludelist('qcodes') import atexit from qcodes.dataset import ( Measurement, ParamSpec, SQLiteSettings, experiments, get_guids_by_run_spec,