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

Acc-Models Creation #432

Merged
merged 89 commits into from
Dec 19, 2023
Merged

Acc-Models Creation #432

merged 89 commits into from
Dec 19, 2023

Conversation

awegsche
Copy link
Contributor

This adds an overhauled modelcreation to omc3

Features:

  • useful help messages
  • can use different sources (afs, acc-models-like user defined path) for newer optics (LHC since 2018, injectors)
  • ability to query for optics files

- help message
- show modifiers
moving debug prints to logging
checked symlinking and folder creation
create empty knobs.txt at folder creation
- bringing parts of the process into the right order
- fixing tests
- non-existent modifiers are caught earlier than before, this breaks tests (change?)
- remove some obsolete code
- k1/kf
- clarification comments
and update lhc model creator to use this
@awegsche
Copy link
Contributor Author

all green

Copy link
Contributor

@tpersson tpersson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot say much about the code. It looks good to me but I can't understand every detail of it without spending days on it. I just made 2 very minor comments. I think we really should get this merged in as soon as possible.

omc3/model/accelerators/accelerator.py Show resolved Hide resolved
tpersson
tpersson previously approved these changes Dec 13, 2023
Copy link
Contributor

@tpersson tpersson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me it looks very good and with all the test I think we can feel rather confident.

Thanks a lot for all this work Andreas.

@fsoubelet
Copy link
Member

Hi, sorry for the delay, I had a big deadline and presentation today.
I will review tomorrow, promise :)

Copy link
Member

@fsoubelet fsoubelet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the new model creation.

A few questions that came to mind when going through, and some comments here and there. You can consider these as suggestions more than anything.

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
omc3/model/accelerators/accelerator.py Outdated Show resolved Hide resolved
omc3/model/accelerators/accelerator.py Outdated Show resolved Hide resolved
omc3/model/accelerators/accelerator.py Show resolved Hide resolved
tests/unit/test_accelerator_classes.py Show resolved Hide resolved
tests/unit/test_accelerator_classes.py Show resolved Hide resolved
tests/unit/test_model_creator.py Outdated Show resolved Hide resolved
tests/unit/test_model_creator.py Outdated Show resolved Hide resolved
tests/unit/test_model_creator.py Outdated Show resolved Hide resolved
Copy link

codeclimate bot commented Dec 18, 2023

Code Climate has analyzed commit 4099470 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 84.6% (50% is the threshold).

This pull request will bring the total coverage in the repository to 86.0% (0.0% change).

View more on Code Climate.

@awegsche awegsche merged commit 89b01d6 into master Dec 19, 2023
38 checks passed
@fsoubelet fsoubelet deleted the model_creation_merged_with_master branch December 19, 2023 09:29
@JoschD JoschD mentioned this pull request Mar 13, 2024
@pylhctokens pylhctokens added the Type: Feature A (suggetion for a) new feature or enhancement in functionality. label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High Work on this! Type: Feature A (suggetion for a) new feature or enhancement in functionality. Type: Release Issue preparing for a release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants