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

Move python files to proper directories #47

Closed
wants to merge 28 commits into from
Closed

Conversation

hugobuddel
Copy link
Contributor

@hugobuddel hugobuddel commented Oct 13, 2024

Move the Python files from the 'prototypes' directory into the proper locations:

  • general python code: metisp/pymetis/src
  • recipes: metisp/pyrecipes
  • workflows: metisp/workflows

Also add all required cmake and make files.

This is based on the iiinstrument-dev-pymodules branch.

The cmake files are configured such that only out-of-source builds are allowed. Use with something like

pip install schema
cmake -S metisp -B build/ --install-prefix=/tmp/wherever
make -C build
make -C build install
pyesorex --recipe-dir=/tmp/wherever/lib64/esopipes-plugins/ --recipes

should give you something like

[ INFO  ] pyesorex: This is PyEsoRex, version 1.0.1-alpha1.

     ***** ESO Recipe Execution Tool, Python version 1.0.1-alpha1 *****

List of available recipes:

  metis_det_lingain     : Measure detector non-linearity and gain
  metis_abstract_base   : Abstract-like base class for METIS recipes
  metis_ifu_calibrate   : Reduce raw science exposures of the IFU.
  metis_lm_basic_reduction: Basic science image data processing
  metis_n_img_flat      : Create master flat for N band detectors
  metis_lm_img_flat     : Create master flat for L/M band detectors
  metis_det_dark        : Create master dark
  metis_ifu_telluric    : Derive telluric absorption correction and optionally flux calibration
  metis_ifu_reduce      : Reduce raw science exposures of the IFU.

Todo:

  • prototypes/tests, but not sure how to do that, because it is not possible to import the recipes directly it seems

@hugobuddel hugobuddel marked this pull request as draft October 13, 2024 19:44
@hugobuddel hugobuddel marked this pull request as ready for review October 13, 2024 21:12
@hugobuddel hugobuddel requested a review from sesquideus October 13, 2024 21:12
@hugobuddel
Copy link
Contributor Author

Closed in favor of #48

@hugobuddel hugobuddel closed this Oct 16, 2024
@hugobuddel hugobuddel deleted the hb/pymetis branch February 2, 2025 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant