# Submitting metrics to the MAF

**URL:** <https://www.rubin.community/t/submitting-metrics-to-the-maf/3377>\
**Category:** Survey Strategy\
**Created:** [October 30, 2018, 4:17pm UTC](https://www.rubin.community/t/submitting-metrics-to-the-maf/3377 "2018-10-30T16:17:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rstreet](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/rstreet/32/665_2.png) [@rstreet](https://www.rubin.community/u/rstreet)\
**Post date:** [October 30, 2018, 4:17pm UTC](https://www.rubin.community/t/submitting-metrics-to-the-maf/3377/1 "2018-10-30T16:17:57Z")

</div>

Since a number of people are currently in the process of developing new metric code for the MAF, it would be helpful to establish a procedure for submitting them.

@fed, @MelissaGraham and I came up with the following workflow:

1. Fork the Github MAF repository: Go to  
[https://github.com/LSST-nonproject/sims\_maf\_contrib​](https://github.com/LSST-nonproject/sims_maf_contrib%E2%80%8B) …and click the ‘fork’ button to creates your own copy of the repository, to which you can commit your new code at will without affecting anyone else.
2. Clone the forked repository to your local machine:  
git clone ​https://github.com/​\<YOUR GITHUB ID\>/sims\_maf\_contrib.git
3. Add your code to this directory within your repo: …/sims\_maf\_contrib/mafContrib …and commit and push changes to your forked repo in Github as normal.
4. When you are happy your code has been completed, issue a pull request from the LSST-nonproject/sims\_maf\_contrib.git repo so that they can approve and integrate your new metrics.

…but it would be great if the MAF team could verify this, @ljones, @yoachim , @tribeiro

I also suggest that developers should submit new metric code as soon as its available rather than wait for the white paper deadline, to avoid a sudden flood of pull requests to the MAF team.

---

<div class="post-metadata">

**Author:** ![ljones](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/ljones/32/1804_2.png) [@ljones](https://www.rubin.community/u/ljones)\
**Post date:** [October 30, 2018, 4:33pm UTC](https://www.rubin.community/t/submitting-metrics-to-the-maf/3377/2 "2018-10-30T16:33:43Z")

</div>

This sounds like what I was envisioning, so yes!

---

<div class="post-metadata">

**Author:** ![rstreet](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/rstreet/32/665_2.png) [@rstreet](https://www.rubin.community/u/rstreet)\
**Post date:** [October 30, 2018, 4:56pm UTC](https://www.rubin.community/t/submitting-metrics-to-the-maf/3377/3 "2018-10-30T16:56:54Z")

</div>

Great, thanks @ljones!

---

<div class="post-metadata">

**Author:** ![ljones](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/ljones/32/1804_2.png) [@ljones](https://www.rubin.community/u/ljones)\
**Post date:** [October 29, 2021, 6:53pm UTC](https://www.rubin.community/t/submitting-metrics-to-the-maf/3377/4 "2021-10-29T18:53:54Z")

</div>

I don’t want to delete this, but I will update briefly the instructions now that we have moved to rubin\_sim!

- Fork rubin\_sim (creates your own copy of the repository)
- Clone the forked repo to your work area, edit code there
- Add your code to your forked repo (git add … ; git commit …) and push changes to your forked repo as usual (git push)
- Issue a pull request (PR) from your fork to the lsst/rubin\_sim repository

Note that you can install your own forked copy of rubin\_sim, using the _same_ instructions as for the lsst rubin\_sim, after you’ve cloned your own copy.
