Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add dataset discovery tools to coffea.dataset_tools's __all__ and to docs #1144

Merged
merged 4 commits into from
Oct 16, 2024

Make LOOSE, MEDIUM, etc. public attributes

0b421a5
Select commit
Loading
Failed to load commit list.
Merged

fix: Add dataset discovery tools to coffea.dataset_tools's __all__ and to docs #1144

Make LOOSE, MEDIUM, etc. public attributes
0b421a5
Select commit
Loading
Failed to load commit list.
Cirrus CI / Test build arm_container:python:3.8 failed Jul 31, 2024 in 5m 49s

Task Summary

Instruction pytest failed in 00:30

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:03 clone
✅ 00:03 create_venv
✅ 05:08 install
❌ 00:30 pytest

Traceback:
/usr/local/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_dataset_tools.py:7: in <module>
    from coffea.dataset_tools import (
../venv/lib/python3.8/site-packages/coffea/dataset_tools/__init__.py:2: in <module>
    from coffea.dataset_tools.dataset_query import DataDiscoveryCLI, print_dataset_query
../venv/lib/python3.8/site-packages/coffea/dataset_tools/dataset_query.py:17: in <module>
    from . import rucio_utils
../venv/lib/python3.8/site-packages/coffea/dataset_tools/rucio_utils.py:9: in <module>
    from rucio.client import Client
E   ModuleNotFoundError: No module named 'rucio'
=============================== warnings summary ===============================
../venv/lib/python3.8/site-packages/coffea/nanoevents/schemas/nanoaod.py:247
../venv/lib/python3.8/site-packages/coffea/nanoevents/schemas/nanoaod.py:247
  /tmp/venv/lib/python3.8/site-packages/coffea/nanoevents/schemas/nanoaod.py:247: RuntimeWarning: Missing cross-reference index for LowPtElectron_electronIdx => Electron
    warnings.warn(

../venv/lib/python3.8/site-packages/coffea/nanoevents/schemas/nanoaod.py:247
../venv/lib/python3.8/site-packages/coffea/nanoevents/schemas/nanoaod.py:247
  /tmp/venv/lib/python3.8/site-packages/coffea/nanoevents/schemas/nanoaod.py:247: RuntimeWarning: Missing cross-reference index for LowPtElectron_genPartIdx => GenPart
    warnings.warn(

../venv/lib/python3.8/site-packages/coffea/nanoevents/schemas/nanoaod.py:247
../venv/lib/python3.8/site-packages/coffea/nanoevents/schemas/nanoaod.py:247
  /tmp/venv/lib/python3.8/site-packages/coffea/nanoevents/schemas/nanoaod.py:247: RuntimeWarning: Missing cross-reference index for LowPtElectron_photonIdx => Photon
    warnings.warn(

../venv/lib/python3.8/site-packages/coffea/nanoevents/schemas/nanoaod.py:247
../venv/lib/python3.8/site-packages/coffea/nanoevents/schemas/nanoaod.py:247
  /tmp/venv/lib/python3.8/site-packages/coffea/nanoevents/schemas/nanoaod.py:247: RuntimeWarning: Missing cross-reference index for FatJet_genJetAK8Idx => GenJetAK8
    warnings.warn(

../venv/lib/python3.8/site-packages/coffea/nanoevents/methods/candidate.py:11
  /tmp/venv/lib/python3.8/site-packages/coffea/nanoevents/methods/candidate.py:11: FutureWarning: In version 2024.7.0 (target date: 2024-06-30 11:59:59-05:00), this will be an error.
  To raise these warnings as errors (and get stack traces to find out where they're called), run
      import warnings
      warnings.filterwarnings("error", module="coffea.*")
  after the first `import coffea` or use `@pytest.mark.filterwarnings("error:::coffea.*")` in pytest.
  Issue: coffea.nanoevents.methods.vector will be removed and replaced with scikit-hep vector. Nanoevents schemas internal to coffea will be migrated. Otherwise please consider using that package!.
    from coffea.nanoevents.methods import vector

../venv/lib/python3.8/site-packages/coffea/lookup_tools/evaluator.py:7
  /tmp/venv/lib/python3.8/site-packages/coffea/lookup_tools/evaluator.py:7: FutureWarning: In version 2024.8.0 (target date: 2024-07-31 11:59:59-05:00), this will be an error.
  To raise these warnings as errors (and get stack traces to find out where they're called), run
      import warnings
      warnings.filterwarnings("error", module="coffea.*")
  after the first `import coffea` or use `@pytest.mark.filterwarnings("error:::coffea.*")` in pytest.
  Issue: coffea.lookup_tools.json_lookup will be removed by August 2024. Please use lumi_tools or correctionlib instead!.
    from coffea.lookup_tools.json_lookup import json_lookup

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
======================== 10 warnings, 1 error in 29.04s ========================

Exit status: 2