-
Notifications
You must be signed in to change notification settings - Fork 272
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
ctapipe-quickstart tool #1774
ctapipe-quickstart tool #1774
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1774 +/- ##
==========================================
- Coverage 91.84% 91.76% -0.08%
==========================================
Files 187 188 +1
Lines 14827 14908 +81
==========================================
+ Hits 13618 13681 +63
- Misses 1209 1227 +18
Continue to review full report at Codecov.
|
we could use this to do what I do in the interface for protopipe... https://github.com/HealthyPear/protopipe-grid-interface/blob/master/create_analysis_tree.py |
Yes that's the idea: in the future it would create a full directory structure and fill in some variables in the config files, which are used as templates. For now, I wanted to start simply just to be able to run a basic analysis, but we can definitely extend this to be more fancy. Though if you want, we could just copy your code into it now (or leave that for a future PR?) In any case, just noticed I need a test... I'll add one |
It now has options to specify the contact info, and will prompt if that info is missing. It will be filled into the generated config files.
added one new feature: the contact information is now filled in from user options (prompted if the user forgets it), so the resulting config file has the correct contact name, email, and organization. |
- moved tests to test_process (since it is related) - use better placeholder text, and add missing placeholders to configs
I'll check and test it |
Since I'm away, I think let's just start simple with this one, and not yet add the feature to generate the full directory structure. That can be a PR we add later, when @HealthyPear start to merge the features of protopipe (and maybe it's not needed to be as fancy as protopipe here) |
…nto feature/quickstart
…nto feature/quickstart
adds a simple tool to generate a working directory containing the latest configuration files, since they are no longer available in ctapipe/examples. You can specify contact info using the command-line options, or if you don't, it prompts the user for the relevant info. The contact info is then filled into the config files that are generated.