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

Minor refactoring #113

Merged
merged 51 commits into from
Oct 31, 2022
Merged

Minor refactoring #113

merged 51 commits into from
Oct 31, 2022

Conversation

YoshikiOhtani
Copy link
Collaborator

@YoshikiOhtani YoshikiOhtani commented Oct 23, 2022

With this pull request I refactored the combined analysis scripts to simply the code and remove unnecessary processes, as following the previous major refactoring pull request #91. I also updated the docstrings and comments in the code so that people can understand the process more easily. There are no changes on the API so this pull request should be transparent to users. Some bugs and issues were actually found during the refactoring, but they are already fixed by the other pull requests that I recently opened.

One important thing is that I implemented a function magicctapipe.io.format_object to pretty-print the configuration, instead of looping over every key and value everywhere in the scripts, and this function only works with python v3.8, with which the sort_dict = False argument can be used. I already updated the required python version with the pull request #119, so users must re-create the magic-cta-pipe environment to use the updated scripts. Sorry for the convenience.

@YoshikiOhtani YoshikiOhtani marked this pull request as ready for review October 31, 2022 07:25
@YoshikiOhtani
Copy link
Collaborator Author

I reprocessed my Crab samples with the refactored code to test if it does not make any issues, and finally got consistent results before and after the refactoring. So now I think it is safe enough to merge this branch to the master, so let me do it now.

@YoshikiOhtani YoshikiOhtani merged commit 09ca69f into master Oct 31, 2022
@YoshikiOhtani YoshikiOhtani deleted the minor-refactor branch October 31, 2022 13:25
Elisa-Visentin pushed a commit that referenced this pull request Sep 12, 2024
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