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
(cm)DEV014MAC001{09:15}::~/Development/OOI/Dev/code/coverage-model (extends_cat_type %) cmueller: bin/python hdf_leak.py -v | |
Pid: 66614 | |
h5py Version: 2.1.0 | |
Starting Memory: 16.35546875 MB | |
Running variable length string datatype | |
...... | |
Ending Memory: 27.59375 MB | |
Consumption: 11.23828125 MB | |
Starting Memory: 27.59375 MB |
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 | |
from coverage_model import * | |
import numpy as np | |
import time | |
import objgraph | |
import gevent | |
from clint.textui import progress |
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 objgraph_utils | |
@author Christopher Mueller | |
@brief | |
""" | |
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
def monitor_dict_to_csv(data_dict, outfile): | |
import csv, os | |
if isinstance(data_dict, str) and os.path.exists(data_dict): | |
import json | |
data_dict = json.load(open(data_dict)) | |
if os.path.exists(outfile): | |
os.remove(outfile) | |
with open(outfile, 'a') as f: |
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
if __name__ == '__main__': | |
import time | |
import h5py | |
import os | |
rng = range(1000) | |
reps = range(3) | |
op = 'test.h5py' | |
if os.path.exists(op): os.remove(op) |
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') |
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
#!/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
#!/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 | |
import os | |
import shutil | |
import re | |
import time | |
import gevent | |
import h5py | |
import numpy as np | |
from coverage_model.utils import prod |