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

Integrate preprocess scripts #742

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ChristosT
Copy link
Collaborator

@ChristosT ChristosT commented Jan 9, 2025

This MR integrates the preprocessor scripts into the main hexrd executable via anew subcommand.
Usage:

hexrd preprocess <profile>

for now we have two profiles {eiger,dexelas}. Each profile comes with its own flags.

Adding a new profile boils down to creating a new class derived from PP_Base that holds the logic of the preprocessor see hexrd/preprocess/preprocessors.py and creating a new profile that holds the cli flags which be done by deriving from HexrdPPScript_Arguments see hexrd/preprocess/profiles.py. The new profile will then become available as an option in hexrd preprocess.

@pep8speaks
Copy link

pep8speaks commented Jan 9, 2025

Hello @ChristosT! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2025-01-09 23:40:57 UTC

@ChristosT ChristosT force-pushed the integrate-preprocess-scripts branch 2 times, most recently from 074417c to 993943a Compare January 9, 2025 23:28
@ChristosT ChristosT force-pushed the integrate-preprocess-scripts branch from 993943a to d2af8df Compare January 9, 2025 23:40
@ChristosT ChristosT self-assigned this Jan 9, 2025
@ChristosT ChristosT requested a review from psavery January 9, 2025 23:41
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.

2 participants