-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from stefco/dev
r 0.2.0 Merge dev
- Loading branch information
Showing
13 changed files
with
288 additions
and
502 deletions.
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
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
Introduction | ||
============ | ||
|
||
Purpose | ||
------- | ||
|
||
`geco_stat` can be used to easily generate histograms, statistics, and | ||
anomaly reports for timing signals generated by LIGO interferometers. It is | ||
meant to simplify the handling of massive amounts of diagnostic data by | ||
providing a simple, organized interface to relevant statistics, easy | ||
progress tracking for large jobs, effortless data visualization, and convenient | ||
ways to combine reports, so that very long timeseries can be efficiently | ||
analyzed in parallel and then recombined into single, monolithic reports | ||
covering entire eras. | ||
|
||
Future versions of `geco_statistics` will also provide tools for automating | ||
report generation, reducing the amount of effort that has to go into creating | ||
reports on LIGO's functioning. | ||
|
||
Intended Use Cases | ||
------------------ | ||
|
||
This is a python-2.6 compatible Python module intended for use in | ||
LIGO production environments. Its python dependencies are minimal, which means | ||
it should work out of the box on most python distributions for viewing and | ||
manipulating existing reports generated using the package. At time of writing, | ||
generating *new* reports requires tools installed in LIGO production | ||
environments; it is intended primarily to be run on LIGO servers, though | ||
future implementations may integrate remote access tools. | ||
|
||
**If you are just interested in viewing existing diagnostic report data**, you | ||
can use Python, though iPython is recommended for interactive use. `You can | ||
install iPython from the project website`_. If you are | ||
running this module on a LIGO production environment, no additional | ||
dependencies should be necessary. | ||
|
||
.. _You can install iPython from the project website: http://ipython.org | ||
|
||
Getting Started | ||
--------------- | ||
|
||
Install with ``pip``: | ||
|
||
:: | ||
|
||
pip install --upgrade geco-stats | ||
|
||
If you don't have root privileges (as is probably the case on a LIGO server), | ||
change to the directory where you would like to work and run: | ||
|
||
:: | ||
|
||
virtualenv env | ||
source env/bin/activate | ||
pip install --upgrade geco-stats | ||
|
||
When you are done using your ``virtualenv``, you can run ``deactivate`` to go | ||
back to using your regular system install of ``python`` and associated tools. | ||
|
||
If you are developing or working from source, visit the `github repository`_. | ||
|
||
.. _github repository: https://github.com/stefco/geco_stat |
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,77 @@ | ||
Bibliography (Useful Links) | ||
=========================== | ||
|
||
The following links have proved useful in creating, documenting, testing, and | ||
deploying this package. | ||
|
||
Anomaly and Outlier Detection | ||
----------------------------- | ||
|
||
* http://scikit-learn.org/stable/modules/outlier_detection.html | ||
|
||
Documentation and Testing using Sphinx | ||
-------------------------------------- | ||
|
||
* http://thomas-cokelaer.info/tutorials/sphinx/docstring_python.html | ||
* https://docs.python.org/2/library/doctest.html | ||
* http://www.sphinx-doc.org/en/stable/extensions.html | ||
* http://www.sphinx-doc.org/en/stable/ext/doctest.html | ||
* http://www.sphinx-doc.org/en/stable/ext/autosummary.html | ||
* http://www.sphinx-doc.org/en/stable/ext/math.html | ||
|
||
Distribution using PyPI and pip | ||
------------------------------- | ||
|
||
* https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/ | ||
* https://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
* https://python-packaging.readthedocs.org/en/latest/minimal.html | ||
* Setting up a ``requirements.txt`` file that automatically gets required | ||
dependencies from the ``setup.py`` file: https://caremad.io/2013/07/setup-vs-requirement/ | ||
* A little bit more discussion of the ``setup.py`` ``install_requires`` | ||
variable: https://packaging.python.org/en/latest/requirements/ | ||
* Including extra requirements for nonstandard usage: | ||
https://pythonhosted.org/setuptools/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies | ||
|
||
Running a function from the Command Line | ||
---------------------------------------- | ||
|
||
* https://docs.python.org/2/tutorial/modules.html#executing-modules-as-scripts | ||
* http://stackoverflow.com/questions/34952745/how-can-one-enable-a-shell-command-line-argument-for-a-python-package-installed | ||
* How to make sure that only a single instance of your code is running: | ||
http://blog.tplus1.com/blog/2012/08/08/python-allow-only-one-running-instance-of-a-script/ | ||
* A stackoverflow question on the topic with some nice alternative approaches: | ||
http://stackoverflow.com/questions/380870/python-single-instance-of-program | ||
* Documentation on ``sys.excepthook``, used to call cleanup code right before | ||
exiting when your program crashes: https://docs.python.org/2/library/sys.html | ||
|
||
Using Read the Docs for Documentation | ||
------------------------------------- | ||
|
||
* https://read-the-docs.readthedocs.org/en/latest/getting_started.html | ||
* Astropy is a very good (and thorough) example of advanced Read The Docs | ||
support in Python: https://github.com/astropy/astropy | ||
|
||
Writing in Restructured Text (reST) | ||
----------------------------------- | ||
|
||
* I'm used to markdown, so this comparison of Restructured Text (reST) was very | ||
helpful: http://www.unexpected-vortices.com/doc-notes/markdown-and-rest-compared.html | ||
|
||
Python | ||
------ | ||
|
||
* A very good guide to python method decorators: https://julien.danjou.info/blog/2013/guide-python-static-class-abstract-methods | ||
* Detailed description of ``super()``: https://rhettinger.wordpress.com/2011/05/26/super-considered-super/ | ||
|
||
Vim Fun | ||
------- | ||
|
||
* Negative regex matching: http://vim.wikia.com/wiki/Search_for_lines_not_containing_pattern_and_other_helpful_searches | ||
|
||
Misc. | ||
----- | ||
|
||
* How to schedule jobs on UNIX systems using `chrontab`: http://kvz.io/blog/2007/07/29/schedule-tasks-on-linux-using-crontab/ | ||
* How to schedule larger cluster jobs using Condor: https://www.lsc-group.phys.uwm.edu/lscdatagrid/doc/condorview.html | ||
* http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script | ||
|
Oops, something went wrong.