Skip to main content

BIHC: Beam-Induced Heating Computation package

Reason this release was yanked:

pytimber logging bug

Project description

BIHC

Beam Induced Heating Computation (BIHC) tool is a package that allows the estimation of the dissipated power due to the passage of a particle beam inside an accelerator component.

The dissipated power value depends on the characteristics of the particle beam (beam spectrum and intensity) and on the characteristics of the consdiered accelerator component (beam-coupling impedance).

Check :file_folder: examples/ on how to use!

Documentation is avaiable in bihc.readthedocs.io

Fist release coming soon (January 2023)

Installation

This section explains how to set up the environment to start using BIHC package for power loss computations.

Installation in CERN lxplus

Connect to CERN lxplus via ssh. Avoid connecting to lxplus8, the code will induce in Kerberos issues. Kerberos logging will expire 4h after each connection and needs to be renewed.

ssh -XY user@lxplus.cern.ch

In your /user or /work directory, do:

# If miniconda is not installed
# Get, install and activate miniconda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh 
source miniconda3/bin/activate

# Get standard packages 
# (to have all spark functionalities pandas needs to be installed before pytimber)
pip install numpy scipy matplotlib ipython pandas

# Change python package index to CERN index
pip install git+https://gitlab.cern.ch/acc-co/devops/python/acc-py-pip-config.git

# Install pytimber
pip install pytimber

# Change python package index back to default
pip uninstall acc-py-pip-config

Test the installation with

$ ipython
import pytimber
ldb = pytimber.LoggingDB(source="nxcals") 
ldb.search('LHC%BEAM_ENERGY%')
ldb.get(ldb.search('LHC%BEAM_ENERGY%')[0], t1='2022-06-15 15:10:30.0000')

Setup Git in lxplus

git config --list

Look for user.name and user.email. If it is not yet set, run the following commands (which set the information for all your git repositories on lxplus)

git config --global user.name "Your Name"
git config --global user.email "your.name@cern.ch"

There are other settings recommended as well:

git config --global push.default simple
git config --global http.postBuffer 1048576000
git config --global http.emptyAuth true # Required on CC7

The push setting makes some operations more straightforward. The second addresses an issue with large pushes via plain http or krb5. The third addresses an issue with libcurl and krb5.

Developers: Download BIHC repository

git clone https://github.com/LeonardoSito/BIHC.git

Users: pip install

(Available soon)

pip install bihc

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bihc-0.0.8.8.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

bihc-0.0.8.8-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file bihc-0.0.8.8.tar.gz.

File metadata

  • Download URL: bihc-0.0.8.8.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.10

File hashes

Hashes for bihc-0.0.8.8.tar.gz
Algorithm Hash digest
SHA256 7d54afbf4b16004af407bac41ccb62326190ff62eb0eaee01071f77391716fc7
MD5 297ba405728fb6f0d094c900db588e3a
BLAKE2b-256 19721025527daba74e2c971baf79b28d2df26b2903f0c678f42fdb60cba0139b

See more details on using hashes here.

File details

Details for the file bihc-0.0.8.8-py3-none-any.whl.

File metadata

  • Download URL: bihc-0.0.8.8-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.10

File hashes

Hashes for bihc-0.0.8.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2beb9e8dda8b0779a8c233cb5703526f5cf907da9c96543c39518479ac319b78
MD5 6dc74a8a39cbad22664298862ef01f4e
BLAKE2b-256 a8fe24ba3ffb8975e67ec9b9b1c84eed3a40b4224956b1d7626b3c8763353600

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page