-
Notifications
You must be signed in to change notification settings - Fork 2
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
DM-38962: Update docs to new API #91
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6bd2ed5
Tidy up docs
acf240e
Correct package layout section
642e132
Add more pages to the docs
3b96800
Add a metric example to the plot example
e226708
Update getting started guide to have a plot and metric example and fi…
b48b0b4
Update selector doc string
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. _analysis-tools-detailed-package-layout: | ||
|
||
Detailed Package Layout | ||
======================= | ||
|
||
Eventually this page will have more details about the package layout and the ethos behind analysis tools. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
.. _analysis-tools-faqs: | ||
|
||
FAQs | ||
==== | ||
|
||
What Order are Configs Applied In? | ||
---------------------------------- | ||
|
||
In analysis tools there are a number of ways to set config options which are applied in a certain order. If | ||
you get this order wrong you might be suprised by what your action is doing. In order from first applied to | ||
last applied: | ||
|
||
1. The action defaults | ||
2. The config file in the obs package | ||
3. The camera specific config in the obs package | ||
4. The pipeline file configs | ||
5. The command line --config and --config-file options | ||
|
||
Due to this configs that are obs package specific should not be specified in the pipeline file because they | ||
overwrite the obs specific configs. For example the bands option, if that is set in the pipeline file it will | ||
overwrite the obs package which means that if you try to apply the same pipeline to HSC and DC2 data (for | ||
example) it will not work for both as each survey has different band coverage. | ||
|
||
How flag bands work | ||
------------------- | ||
|
||
The various flag selectors allow you to specify which bands the flags are applied in. If you want the selector | ||
to be applied in the bands that the plot is being made in then the flag config option should be set to []. | ||
|
||
Where is the line between python and YAML? | ||
------------------------------------------ | ||
|
||
This can be a bit of a blurry line and in the end is up to the individual developer. A rough guideline is that | ||
if the code is reusable either for variants of the original action or useful for other actions then it belongs | ||
in its own python class. If it is single use or a specific instance of a class then it should be done through | ||
the YAML config. An example of this is the photometric repeatability metrics. Here there is a base action | ||
called PhotometricRepeatability, defined in python, which is then configured for each individual application | ||
in the pipeline YAML. | ||
|
||
.. code-block:: yaml | ||
|
||
atools.modelPhotRepGalSn5to10: PhotometricRepeatability | ||
atools.modelPhotRepGalSn5to10.fluxType: cModelFlux | ||
atools.modelPhotRepGalSn5to10.process.filterActions.perGroupStdevFiltered.selectors.extendedness.op: gt | ||
atools.modelPhotRepGalSn5to10.process.filterActions.perGroupStdevFiltered.selectors.sn.minimum: 5 | ||
atools.modelPhotRepGalSn5to10.process.filterActions.perGroupStdevFiltered.selectors.sn.maximum: 10 | ||
|
||
The first line calls the action defined in python, after that the specific configuration is set in the | ||
pipeline YAML. This is a good balance between defining the entire action in YAML and having duplicate actions | ||
defined in the python with only very mild differences. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General comment: if you structure your ReST with the philosophy of one sentence per line, it will make future edits easier to parse.