This file contains hidden or 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
#!/usr/bin/env python | |
# https://gist.github.com/4438441 | |
import os | |
from coverage_model import * | |
import numpy as np | |
import time | |
import objgraph | |
import gevent |
This file contains hidden or 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
#!/usr/bin/env python | |
""" | |
@package | |
@file memory_trials.py | |
@author Christopher Mueller | |
@brief | |
""" | |
from coverage_model import * |
This file contains hidden or 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
# IPython log file | |
from ion.services.dm.utility.granule_utils import time_series_domain | |
from interface.services.dm.ipubsub_management_service import PubsubManagementServiceClient | |
from interface.services.dm.idataset_management_service import DatasetManagementServiceClient | |
from interface.services.dm.iingestion_management_service import IngestionManagementServiceClient | |
from interface.services.sa.idata_product_management_service import DataProductManagementServiceClient | |
from interface.services.dm.idata_retriever_service import DataRetrieverServiceClient | |
from ion.services.dm.inventory.dataset_management_service import DatasetManagementService | |
from ion.services.dm.utility.granule import RecordDictionaryTool |
This file contains hidden or 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
# Fix the ipython path | |
project_path = '/Users/cmueller/Development/OOI/Dev/code/coi-services' | |
virtualenv_path = '/Users/cmueller/Development/OOI/Dev/virtenvs/clean27' | |
import IPython | |
IPython.sys.path = ['', | |
'{0}/eggs/gevent-0.13.7-py2.7-macosx-10.6-intel.egg'.format(project_path), | |
'{0}/eggs/coverage-3.5.2-py2.7-macosx-10.6-intel.egg'.format(project_path), | |
'{0}'.format(project_path), | |
'{0}/eggs/objgraph-1.7.2-py2.7.egg'.format(project_path), |
This file contains hidden or 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
#!/bin/sh | |
DO_POP=False | |
if [ "$1" = "pop" ]; then | |
DO_POP=True | |
fi | |
LAST_NAME=$(git log -1 --pretty=%B 2> /dev/null | awk "{ print \$1 }") | |
if [ "$LAST_NAME" = "WIP" ]; then | |
if $DO_POP; then |
This file contains hidden or 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
#!/usr/bin/env python | |
import os | |
import shutil | |
import re | |
import time | |
import gevent | |
import h5py | |
import numpy as np | |
from coverage_model.utils import prod |
This file contains hidden or 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
#!/usr/bin/env python | |
from coverage_model import * | |
import networkx as nx | |
import numpy as np | |
import os | |
''' | |
from scratch import pfunc_validation as pfv |
This file contains hidden or 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
#!/usr/bin/env python | |
""" | |
@package | |
@file data_proc_poc | |
@author Christopher Mueller | |
@brief | |
""" | |
# IPython log file |
This file contains hidden or 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
# Run from bin/pycc using the %run magic command | |
# %run logging_latency.py | |
if __name__ == '__main__': | |
import time | |
from ooi.logging import log | |
# Using the base logging.yml, no logging.local.yml | |
# So we're set to logging of INFO | |
print 'Check that we\'re at the expected logging level\n' |
This file contains hidden or 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
><> from coverage_model import * | |
><> from coverage_model.recovery import CoverageDoctor | |
><> cov=SimplexCoverage.load('test_data/6eced7e8466f4d70a5d8febe0b9178f2') | |
--------------------------------------------------------------------------- | |
IOError Traceback (most recent call last) | |
/Users/cmueller/Development/OOI/Dev/code/coverage-model/extern/pyon/scripts/pycc.pyc in <module>() | |
----> 1 cov=SimplexCoverage.load('test_data/6eced7e8466f4d70a5d8febe0b9178f2') |