<commit_before># tsphot

Time series photometry using astropy.

Note: As of 2014-05, requires numpy 1.7.1 and old version of photutils. See https://github.com/ccd-utexas/photutils_20140522

Top level script: do_spe_online.py

## Examples

To display help text:
```
$ python do_spe_online.py --help
[...displays help text...]
```

To do online reduction of an SPE file:
```
$ python do_spe_online.py --fpath /path/to/data.spe --sleep 5 --verbose
```

## How to contribute

- Set up your GitHub account:
- - Create a github account.
- - Have an existing ccd-utexas member add you to the organization. See the stache entry on the ccd-utexas GitHub organization for details.
- - Install the github application: e.g. https://mac.github.com/
- - Sign in with your github credentials
- - Under "Repositories", open the "ccd-utexas" account.
- - By "ccd-utexas/tsphot" click "Clone to Computer"
- - Click the arrow to open the repository.

- Create and edit your branch:
- - Make the "develop" branch active by double clicking.
- - Click "+" to create your new branch off of "develop". Describe your miniproject in your branch name, then click "Branch".
- - Click "Publish" to let others group members know of your project.
- - Navigate to your local version of the cloned repository and make your code changes. To find the local cloned repository: Under "Repositories", right-click "ccd-utexas/tsphot", click "Show in Finder".
- - Commit your changes to your branch often in case you need to revert back. To commit changes: Click "Changes", type a summary and description of your changes, click "+" to enable syncing, click "Commit & Sync".

- Merge and delete your branch:
When you are finished editing your version of the code and ready to merge your changes back into "develop".
- - make "develop" your active branch.
- - Click "Sync Branch" in case someone else commited to "develop while you were editing your verison.
- - Merge your changes into develop: 
<commit_msg>added to read me<commit_after># tsphot

Time series photometry using astropy.

Note: As of 2014-05, requires numpy 1.7.1 and old version of photutils. See https://github.com/ccd-utexas/photutils_20140522

Top level script: do_spe_online.py

## Examples

To display help text:
```
$ python do_spe_online.py --help
[...displays help text...]
```

To do online reduction of an SPE file:
```
$ python do_spe_online.py --fpath /path/to/data.spe --sleep 5 --verbose
```

## How to contribute

This step-by-step tutorial walks you through how to contribute to this repository using the GitHub application.

Follow this model for contributing: http://nvie.com/posts/a-successful-git-branching-model/

For additional information on collaborating: https://help.github.com/categories/63/articles

- Set up your GitHub account:
- - Create a github account.
- - Have an existing ccd-utexas member add you to the organization. See the stache entry on the ccd-utexas GitHub organization for details.
- - Install the github application: e.g. https://mac.github.com/
- - Sign in with your github credentials
- - Under "Repositories", open the "ccd-utexas" account.
- - By "ccd-utexas/tsphot" click "Clone to Computer"
- - Click the arrow to open the repository.

- Create your branch from "develop" and edit:
- - Make the "develop" branch active by double clicking.
- - Click "+" to create your new branch off of "develop". Describe your miniproject in your branch name, then click "Branch".
- - Click "Publish" to let others group members know of your project.
- - Navigate to your local version of the cloned repository and make your code changes. To find the local cloned repository: Under "Repositories", right-click "ccd-utexas/tsphot", click "Show in Finder".
- - Commit your changes to your branch often in case you need to revert back. To commit changes: Click "Changes", type a summary and description of your changes, click "+" to enable syncing, click "Commit & Sync".

- Merge your branch back into "develop" and delete your branch:
Follow this section when you are finished editing your version of the code and are ready to merge your changes back into "develop".
- - Make "develop" your active branch.
- - Click "Sync Branch" in case someone else commited to "develop" while you were editing your verison.
- - Merge your changes into "develop": Click "Branches" > click "Merge View" > drag your branch into the left-hand box (the branch you're merging from), drag develop into the right-hand box (the branch you're merging into). The display will show "your_branch" => "develop" > click "Merge Branches". Make "develop" your active branch and resolve any conflicts in your text editer.

**Note:** Clicking "Merge Branches" does not sync the merged "develop" branch back to GitHub.

- - After resolving any code conflicts, make "develop" your active, click "Changes", click "Commit & Sync".
- - All of your code changes in your branch have now been merged into "develop". Delete your branch now that your miniproject is complete. Make "develop" your active branch, click the down-arrow on your branch, click "Delete", confirm that you want to delete your branch.

**Warning:** Never delete "develop" or "master".

- Merge develop into master:
To issue a new code release into production. Use semantic versioning from http://semver.org/
- - Create a new release branch from develop, e.g. release_v1.0.0
- - Test the release branch.
- - Issue a pull request to merge from the release branch into master:
- - - Navigate to https://github.com/ccd-utexas/tsphot
- - - Make "master" the active branch.
- - - By "release_v1.0.0", click "Compare and pull request" > click "Edit".
- - - Set:
    base: master
    compare: release_v1.0.0
- - - Click "Send pull request"
- - - An ccd-utexas owner will review the changes and click "Confirm".
- - Admin: 
- - - Once the pull request has been merged, delete the branch "release_v1.0.0".
- - - Tag the release with the version number at https://github.com/ccd-utexas/tsphot/releases

- Admin: Make a backup of tsphot:


    base: 

{'fraction_non_alphanumeric': 0.09419568822553898, 'fraction_numerical': 0.008291873963515755, 'mean_word_length': 3.6751937984496124, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1477660', 'n_tokens_mistral': 1755, 'n_tokens_neox': 1682, 'n_words': 816}