GithubHelp home page GithubHelp logo

python-analysis-bootcamp's Introduction

EIC Analysis Bootcamp

Running on Github

Open in GitHub Codespaces

Running on Binder

Binder

Running on Google Colab

Open In Colab

Contents

EIC Analysis Bootcamp Notebooks to run on Binder or Google Colab.

  • Binder Open In Colab Getting Started
  • Binder Open In Colab Accessing Truth Information
  • Binder Open In Colab Determining x and Q2 from the scattered electron.ipynb
  • Binder Open In Colab Comparing measured and true x and Q2.ipynb

Note: Google Colab does not automatically install the necessary packages. See environment.yml for details about the prerequisites you will need to install in the session.

python-analysis-bootcamp's People

Contributors

wdconinc avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

sly2j

python-analysis-bootcamp's Issues

xrootd now needs to be installed separately

Environment: (where does this bug occur, have you tried other environments)

  • Which branch (often main for latest released): main
  • Environment: Codespaces

Steps to reproduce: (give a step by step account of how to trigger the bug)

  • Open project in codespaces (it opens fine)
  • Try running notebooks cells that open remote root file
  • This produces an error:
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
File /opt/conda/envs/analysis/lib/python3.12/site-packages/uproot/extras.py:98, in XRootD_client()
     97 try:
---> 98     import XRootD
     99     import XRootD.client

ModuleNotFoundError: No module named 'XRootD'

The above exception was the direct cause of the following exception:

ModuleNotFoundError                       Traceback (most recent call last)
/workspaces/python-analysis-bootcamp/Getting Started.ipynb Cell 10 line 1
----> [1](vscode-notebook-cell://codespaces%2Bjubilant-palm-tree-5rjr5g9rv7344x6/workspaces/python-analysis-bootcamp/Getting%20Started.ipynb#X12sdnNjb2RlLXJlbW90ZQ%3D%3D?line=0) events = ur.open(server + dir + file + ':events')

File /opt/conda/envs/analysis/lib/python3.12/site-packages/uproot/reading.py:143, in open(path, object_cache, array_cache, custom_classes, decompression_executor, interpretation_executor, **options)
    134 if not uproot._util.isstr(file_path) and not (
    135     hasattr(file_path, "read") and hasattr(file_path, "seek")
    136 ):
    137     raise ValueError(
    138         "'path' must be a string, pathlib.Path, an object with 'read' and "
    139         "'seek' methods, or a length-1 dict of {file_path: object_path}, "
    140         f"not {path!r}"
    141     )
--> 143 file = ReadOnlyFile(
...
ModuleNotFoundError: Install XRootD python bindings with:

    conda install -c conda-forge xrootd

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.