Skip to main content

spacopt is a package for bringing optimization techniques to spacal-simulation application

Project description

spacopt

image

image

Documentation Status

spacopt - short for spacal-optimization

Description

spacopt is a package for bringing optimization techniques to spacal-simulation application, created for LHCb ECAL studies for different types of calorimeters, such as spacal and shashlik. Should be considered as complementary to spacal-simulation, hosted at gitlab under CERN domain. Up to this point, the main package for optimization is considered Hyperactive.

Features

  • Create config files, with user defined parameters of the module.
  • Run a MC simulation, using pyton script
  • Run Optimization for finding best user-defined parameters of module, to minimize the loss function: $ \dfrac{a}{\sqrt{E}}+b,$ where $a$ - sampling term, $b$ - constant term.

In fact, both $a$ and $b$ could be considered as independent subjects to minimize, as well as other functions of one or both of them.

Installation

pip install spacopt

Usage

import spacopt

# Run Simulation

Contributing

License

History

0.3.1 (2022-05-19)

  • Readability changges to Simulation prints

0.3.0 (2022-05-19)

  • New method to Simulation: MultiFittingMultProc
    • Adds multiprocessing to running geant4 instances (core per every energy point), so now energy points run in parallel.
  • Other minor changes to Simulation init: so it now accepts parameters of the module, instead of final method.

0.2.0 (2022-05-18)

New scipts

  • New scipt: Optimization_run.py

Caveats

  • For now works only with hard-coded paths, so one needs copy-paste supplementary folders and scipts

0.1.3 (2022-05-15)

  • Minor changes to package wrappers

0.1.2 (2022-05-15)

  • Minor changes to package wrappers

0.1.0 (2022-05-15)

  • First release on PyPI.

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

spacopt-0.3.1.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

spacopt-0.3.1-py2.py3-none-any.whl (14.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file spacopt-0.3.1.tar.gz.

File metadata

  • Download URL: spacopt-0.3.1.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.27.1 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.64.0 CPython/3.8.10

File hashes

Hashes for spacopt-0.3.1.tar.gz
Algorithm Hash digest
SHA256 b89befb45fb2dd65bd5e7ead805e0b87192c412b3cb8398019bda45b9c835b21
MD5 1f5dd6a64425e99979d0262eaa516aa2
BLAKE2b-256 aec64406430fa1d8d87d5b33424245dedfca08b97717d6e934616c24eeef2196

See more details on using hashes here.

File details

Details for the file spacopt-0.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: spacopt-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.27.1 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.64.0 CPython/3.8.10

File hashes

Hashes for spacopt-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 de3d5f612c936911976ca1cb2a59bf314a5e08b6461747afc9332c5c8afd138d
MD5 e060a87db91117df9071c9f0a263a234
BLAKE2b-256 3193a4129811e2ee74ad067380dbfecdb014b86b52f0ee0e9417e9fc6fe162a2

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