Skip to content

Refactor reference_atmospheric_profile_selector

Description

Big refactoring, removing all the functionality except the ones selected for release 0.1 (molecular atmosphere). The core calibrator class is removed and actual calibrations moved into tools.

Closes #164 (closed), #166 (closed), #167 (closed), #157 (closed), #128 (closed)

Commits

  • add pytest.mark.db for some of new tests

  • Add missing test file

  • Comment out obsolete tests

  • removing unneccessary downloads from ci

  • remove muon file from ci

  • Large test refactoring

  • Remove remaining obsolete tools, refactor model selector and model producer

  • Remove unnecessary tools, refactor remaining

  • Remove lst_adapter and refactor imports

  • Remove lst_adapter from the pyproject
  • Use relative imports instead of absolute in order to avoid circular import problems
  • Update atmospheric tools (partially migrate the atmo calibrator)
  • Remove functionality that won't enter calibpipe-0.1

  • Incorporate mdps API update

  • Add alias for macobac12-table-path

  • Refactor molecular atmospheric model producer

  • Decorate tool.run() and minor doc updates

  • Remove obsolete test, fix error testing (just ensure a correct exception has been raised)

  • Fix typos, don't decorate calibrator (tools running it are decorated now)

  • Remove deprecated error handling and decorate run method

  • Use calibpipe_handle_exception decorator in MuonCalibrator

  • Fix MuonCalibrator

  • Refactor throughput calibrators

  • Refactor

  • Refactoring

  • Refactor macobac calculator tool

  • fix typo

  • Don't track generated _version.py

  • Ignore generated API doc

  • Fix tests

  • Fix tests

  • Refactor reference atmospheric profile selector

  • Retrieve Observatory cfg from the DB
  • Refactor tool to use multiple config files
    • avoid cfg data duplication
  • Add ruff config

  • Fix config typo

  • Refactor reference_atmospheric_profile_selector

  • Separate DB configuration
  • Update cwl workflow and config to use an array of cfg files
  • Fix conditional query

  • Revert the scipy restriction and update db quert

  • Fix typo

  • add quotes to avoid NameError in the eval

  • Fix compound condition in the DB query

  • fix typo in CI

  • Dirty refactoring of ref atmo model selector

  • Fixing shell error

  • Refactor atmopsheric db uploading

  • cta --> ctao

  • cta --> ctao

  • renaming reference models

  • Update test to reflect updates in cfg files

  • fix molecular atmosphere calibrator test

  • Fix atmo model example configs

  • Change CTA-N(S) to CTAO-N(S)

  • Allow db port to be None

  • Fix CI for coverage

  • Refactor the tool to upload observatory data

  • Fix initi_db finish step

  • Update DB initializatoin routine

  • Refactor DB initialization (empty tables)

Related Issue

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
Edited by Mykhailo.Dalchenko

Merge request reports

Loading