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

DM-9530: Initial metric and specification layout design #1

Merged
merged 5 commits into from
Feb 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# How to contribute

Thanks for your interest in making this package better! Here's how.

## Getting help and reporting bugs

If you're not part of the LSST Project, please post your question or issue in [our support forum](https://community.lsst.org/c/support). It's easy to create a Community forum account.

*We don't use GitHub Issues.*

If you're part of the LSST Project, please create a [JIRA ticket](https://jira.lsstcorp.org/).
Use the `QA` component.

## Contributing code

Follow [LSST Data Management's workflow](https://developer.lsst.io/processes/workflow.html) for code contributions.
7 changes: 7 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Thanks for starting a new issue, but hold on!

Please post your issue/bug report/feature request in the LSST Community support forum instead:

https://community.lsst.org/c/support

It's easy to create a forum account if you don't have one already.
8 changes: 8 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{Summary of changes. Prefix PR title with ticket handle.}

****

- [ ] Passes Jenkins CI.
- [ ] Documentation is up-to-date.

Preview the docs at: https://pipelines.lsst.io/v/DM-FIXME
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
*.log
*.json
*.png
*.pkl
.sconsign.dblite
.cache
config.log
.sconf_temp
*.o
*.os
*.so
*.cfgc
*.pyc
*_wrap.cc
*Lib.py
tests/.tests
version.py
bin/*.py
examples/*.list
1 change: 1 addition & 0 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Copyright (C) 2017 Association of Universities for Research in Astronomy, Inc.
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

50 changes: 49 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,52 @@
lsst.validate.metrics
#####################

**Centralized metric and specification definitions for the ``lsst.validate`` framework.**
**Centralized metric and specification definitions for the lsst.validate framework.**
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably have a paragraph in here about what this package really is.

Copy link
Member Author

Choose a reason for hiding this comment

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

I pushed some new README content. Let me know if those are to your liking. I don't want to document too much to early since we're still prototyping ideas in sqr-017.lsst.io.


For background on the ``lsst.validate`` framework, see SQR-017_.

Registering metrics
===================

**Metrics** are *measureable things*.
They can be astronomy concepts (an astrometric RMS), or computational (a task's timing or memory usage).

Metrics that are measured by packages are **registered** here in ``validate_metrics`` by adding or extending a metric definition YAML file in the ``metrics/`` directory.
See `metrics/README.rst <./metrics/README.rst>`_ for more information.

Registering specifications
==========================

**Specifications** are tests of metric measurements.
A specification might say that a metric measurement should be less than a certain value if that measurement was made under a certain set of conditions (*provenance*).
Whenever metrics are measured, DM's SQUASH harness tests those measurements against specifications.
Depending on the pass/fail outcome, subscribers can receive notifications (alerts).

New specifications are **registered** here in ``validate_metrics`` by adding or extending a specification definition YAML file in the ``specs/`` directory.
See `specs/README.rst <./specs/README.rst>`_ for more information.

Getting help and reporting bugs
===============================

If you're not part of the LSST Project, please post your question or issue in `our support forum <https://community.lsst.org/c/support>`_.
It's easy to create a Community forum account.

*We don't use GitHub Issues.*

If you're part of the LSST Project, please create a `JIRA ticket <https://jira.lsstcorp.org/>`_.
Use the `Validation <https://jira.lsstcorp.org/browse/DM/component/13205>`_ component.

Contributing code
=================

Follow `LSST Data Management's workflow <https://developer.lsst.io/processes/workflow.html>`_ for code contributions.

License
=======

This product includes software developed by the `LSST Project <http://www.lsst.org/>`_.
See the `COPYRIGHT <./COPYRIGHT>`_ file.

This product's source code is licensed under the terms of GPLv3 (see `LICENSE <./LICENSE>`_), and all documentation content is licensed under the `Creative Commons Attribution 4.0 International (CC BY 4.0) <https://creativecommons.org/licenses/by/4.0/>`_ license.

.. _SQR-017: https://sqr-017.lsst.io
3 changes: 3 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# -*- python -*-
from lsst.sconsUtils import scripts
scripts.BasicSConstruct("validate_metrics")
7 changes: 7 additions & 0 deletions doc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
_build
py-api
api
html
*.tag
*.inc
doxygen.conf