skip to content
Integration Tests Report
User Tools
Register
Log In
Site Tools
Search
Tools
Show page
Old revisions
Backlinks
Recent Changes
Media Manager
Sitemap
Log In
Register
>
Recent Changes
Media Manager
Sitemap
Trace:
reports:74fa0e8
Media Files
Test executed on commit [[https://www.github.com/tardis-sn/tardis/commit/74fa0e8520a032eb6e3fbc4391f6d5372c4a861b|74fa0e8520a032eb6e3fbc4391f6d5372c4a861b]] <html> <head> <meta charset="utf-8"/> <title>Test Report</title> <style>body { font-family: Helvetica, Arial, sans-serif; font-size: 12px; min-width: 1200px; color: #999; } h2 { font-size: 16px; color: black; } p { color: black; } a { color: #999; } table { border-collapse: collapse; } /****************************** * SUMMARY INFORMATION ******************************/ #environment td { padding: 5px; border: 1px solid #E6E6E6; } #environment tr:nth-child(odd) { background-color: #f6f6f6; } /****************************** * TEST RESULT COLORS ******************************/ span.passed, .passed .col-result { color: green; } span.skipped, span.xfailed, .skipped .col-result, .xfailed .col-result { color: orange; } span.error, span.failed, span.xpassed, .error .col-result, .failed .col-result, .xpassed .col-result { color: red; } /****************************** * RESULTS TABLE * * 1. Table Layout * 2. Extra * 3. Sorting items * ******************************/ /*------------------ * 1. Table Layout *------------------*/ #results-table { border: 1px solid #e6e6e6; color: #999; font-size: 12px; width: 100% } #results-table th, #results-table td { padding: 5px; border: 1px solid #E6E6E6; text-align: left } #results-table th { font-weight: bold } /*------------------ * 2. Extra *------------------*/ .log:only-child { height: inherit } .log { background-color: #e6e6e6; border: 1px solid #e6e6e6; color: black; display: block; font-family: "Courier New", Courier, monospace; height: 230px; overflow-y: scroll; padding: 5px; white-space: pre-wrap } div.image { border: 1px solid #e6e6e6; float: right; height: 240px; margin-left: 5px; overflow: hidden; width: 320px } div.image img { width: 320px } /*------------------ * 3. Sorting items *------------------*/ .sortable { cursor: pointer; } .sort-icon { font-size: 0px; float: left; margin-right: 5px; margin-top: 5px; /*triangle*/ width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; } .inactive .sort-icon { /*finish triangle*/ border-top: 8px solid #E6E6E6; } .asc.active .sort-icon { /*finish triangle*/ border-bottom: 8px solid #999; } .desc.active .sort-icon { /*finish triangle*/ border-top: 8px solid #999; } </style></head> <body> <script>/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ function toArray(iter) { if (iter === null) { return null; } return Array.prototype.slice.call(iter); } function find(selector, elem) { if (!elem) { elem = document; } return elem.querySelector(selector); } function find_all(selector, elem) { if (!elem) { elem = document; } return toArray(elem.querySelectorAll(selector)); } function sort_column(elem) { toggle_sort_states(elem); var colIndex = toArray(elem.parentNode.childNodes).indexOf(elem); var key; if (elem.classList.contains('numeric')) { key = key_num; } else if (elem.classList.contains('result')) { key = key_result; } else { key = key_alpha; } sort_table(elem, key(colIndex)); } addEventListener("DOMContentLoaded", function() { reset_sort_headers(); split_extra_onto_two_rows(); sort_column(find('.initial-sort')); find_all('.col-links a.image').forEach(function(elem) { elem.addEventListener("click", function(event) { var node = elem; while (node && !node.classList.contains('results-table-row')) { node = node.parentNode; } if (node != null) { if (node.nextSibling && node.nextSibling.classList.contains("extra")) { var href = find('.image img', node.nextSibling).src; window.open(href); } } event.preventDefault(); }, false) }); find_all('.image a').forEach(function(elem) { elem.addEventListener("click", function(event) { window.open(find('img', elem).getAttribute('src')); event.preventDefault(); }, false) }); find_all('.sortable').forEach(function(elem) { elem.addEventListener("click", function(event) { sort_column(elem); }, false) }); }); function sort_table(clicked, key_func) { one_row_for_data(); var rows = find_all('.results-table-row'); var reversed = !clicked.classList.contains('asc'); var sorted_rows = sort(rows, key_func, reversed); var parent = document.getElementById('results-table-body'); sorted_rows.forEach(function(elem) { parent.appendChild(elem); }); split_extra_onto_two_rows(); } function sort(items, key_func, reversed) { var sort_array = items.map(function(item, i) { return [key_func(item), i]; }); var multiplier = reversed ? -1 : 1; sort_array.sort(function(a, b) { var key_a = a[0]; var key_b = b[0]; return multiplier * (key_a >= key_b ? 1 : -1); }); return sort_array.map(function(item) { var index = item[1]; return items[index]; }); } function key_alpha(col_index) { return function(elem) { return elem.childNodes[col_index].firstChild.data.toLowerCase(); }; } function key_num(col_index) { return function(elem) { return parseFloat(elem.childNodes[col_index].firstChild.data); }; } function key_result(col_index) { return function(elem) { var strings = ['Error', 'Failed', 'XFailed', 'XPassed', 'Skipped', 'Passed']; return strings.indexOf(elem.childNodes[col_index].firstChild.data); }; } function reset_sort_headers() { find_all('.sort-icon').forEach(function(elem) { elem.parentNode.removeChild(elem); }); find_all('.sortable').forEach(function(elem) { var icon = document.createElement("div"); icon.className = "sort-icon"; icon.textContent = "vvv"; elem.insertBefore(icon, elem.firstChild); elem.classList.remove("desc", "active"); elem.classList.add("asc", "inactive"); }); } function toggle_sort_states(elem) { //if active, toggle between asc and desc if (elem.classList.contains('active')) { elem.classList.toggle('asc'); elem.classList.toggle('desc'); } //if inactive, reset all other functions and add ascending active if (elem.classList.contains('inactive')) { reset_sort_headers(); elem.classList.remove('inactive'); elem.classList.add('active'); } } function split_extra_onto_two_rows() { find_all('tr.results-table-row').forEach(function(elem) { var new_row = document.createElement("tr") new_row.className = "extra"; elem.parentNode.insertBefore(new_row, elem.nextSibling); find_all(".extra", elem).forEach(function (td_elem) { if (find("*:not(.empty)", td_elem)) { new_row.appendChild(td_elem); td_elem.colSpan=5; } else { td_elem.parentNode.removeChild(td_elem); } }); }); } function one_row_for_data() { find_all('tr.results-table-row').forEach(function(elem) { if (elem.nextSibling.classList.contains('extra')) { toArray(elem.nextSibling.childNodes).forEach( function (td_elem) { elem.appendChild(td_elem); }) } else { var new_td = document.createElement("td"); new_td.className = "extra"; elem.appendChild(new_td); } }); } </script> <p>Report generated on 17-Jun-2016 at 14:37:10</p> <h2>Environment</h2> <table id="environment"> <tr> <td>Platform</td> <td>Linux-3.16.0-70-generic-x86_64-with-debian-jessie-sid</td></tr> <tr> <td>Python</td> <td>2.7.11</td></tr></table> <h2>Summary</h2> <p>0 tests ran in 18.53 seconds.<br/><span class="passed">0 passed</span>, <span class="skipped">0 skipped</span>, <span class="failed">0 failed</span>, <span class="error">9 errors</span>.<br/><span class="skipped">0 expected failures</span>, <span class="failed">0 unexpected passes</span>.</p> <h2>Results</h2> <table id="results-table"> <thead id="results-table-head"> <tr> <th class="sortable initial-sort result" col="result">Result</th> <th class="sortable" col="name">Test</th> <th class="sortable numeric" col="duration">Duration</th> <th>Links</th></tr></thead> <tbody id="results-table-body"> <tr class="error results-table-row"> <td class="col-result">Error</td> <td class="col-name">lib.linux-x86_64-2.7/tardis/tests/tests_slow/test_w7.py::TestW7::()::test_j_estimators::setup</td> <td class="col-duration">0.48</td> <td class="col-links"></td> <td class="extra"> <div class="log">self = <CallInfo when='setup' exception: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'><br/>func = <function <lambda> at 0x7fbbeaa0ecf8>, when = 'setup'<br/><br/>> ???<br/><br/>_pytest.runner:149: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/>_pytest.runner:137: in <lambda><br/> ???<br/>_pytest.core:521: in __call__<br/> ???<br/>_pytest.core:528: in _docall<br/> ???<br/>_pytest.core:393: in execute<br/> ???<br/>_pytest.core:113: in wrapped_call<br/> ???<br/>_pytest.core:138: in get_result<br/> ???<br/>_pytest.core:123: in __init__<br/> ???<br/>_pytest.core:394: in execute<br/> ???<br/>_pytest.runner:86: in pytest_runtest_setup<br/> ???<br/>_pytest.runner:403: in prepare<br/> ???<br/>_pytest.python:1197: in setup<br/> ???<br/>_pytest.python:702: in fillfixtures<br/> ???<br/>_pytest.python:1345: in _fillfixtures<br/> ???<br/>_pytest.python:1388: in getfuncargvalue<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1883: in execute<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1921: in execute<br/> ???<br/>_pytest.python:1842: in call_fixture_func<br/> ???<br/>tardis/tests/tests_slow/conftest.py:109: in reference<br/> "quantities2.npz")))<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>file = '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz', mmap_mode = None, allow_pickle = True, fix_imports = True, encoding = 'ASCII'<br/><br/> def load(file, mmap_mode=None, allow_pickle=True, fix_imports=True,<br/> encoding='ASCII'):<br/> """<br/> Load arrays or pickled objects from ``.npy``, ``.npz`` or pickled files.<br/> <br/> Parameters<br/> ----------<br/> file : file-like object or string<br/> The file to read. File-like objects must support the<br/> ``seek()`` and ``read()`` methods. Pickled files require that the<br/> file-like object support the ``readline()`` method as well.<br/> mmap_mode : {None, 'r+', 'r', 'w+', 'c'}, optional<br/> If not None, then memory-map the file, using the given mode (see<br/> `numpy.memmap` for a detailed description of the modes). A<br/> memory-mapped array is kept on disk. However, it can be accessed<br/> and sliced like any ndarray. Memory mapping is especially useful<br/> for accessing small fragments of large files without reading the<br/> entire file into memory.<br/> allow_pickle : bool, optional<br/> Allow loading pickled object arrays stored in npy files. Reasons for<br/> disallowing pickles include security, as loading pickled data can<br/> execute arbitrary code. If pickles are disallowed, loading object<br/> arrays will fail.<br/> Default: True<br/> fix_imports : bool, optional<br/> Only useful when loading Python 2 generated pickled files on Python 3,<br/> which includes npy/npz files containing object arrays. If `fix_imports`<br/> is True, pickle will try to map the old Python 2 names to the new names<br/> used in Python 3.<br/> encoding : str, optional<br/> What encoding to use when reading Python 2 strings. Only useful when<br/> loading Python 2 generated pickled files on Python 3, which includes<br/> npy/npz files containing object arrays. Values other than 'latin1',<br/> 'ASCII', and 'bytes' are not allowed, as they can corrupt numerical<br/> data. Default: 'ASCII'<br/> <br/> Returns<br/> -------<br/> result : array, tuple, dict, etc.<br/> Data stored in the file. For ``.npz`` files, the returned instance<br/> of NpzFile class must be closed to avoid leaking file descriptors.<br/> <br/> Raises<br/> ------<br/> IOError<br/> If the input file does not exist or cannot be read.<br/> ValueError<br/> The file contains an object array, but allow_pickle=False given.<br/> <br/> See Also<br/> --------<br/> save, savez, savez_compressed, loadtxt<br/> memmap : Create a memory-map to an array stored in a file on disk.<br/> <br/> Notes<br/> -----<br/> - If the file contains pickle data, then whatever object is stored<br/> in the pickle is returned.<br/> - If the file is a ``.npy`` file, then a single array is returned.<br/> - If the file is a ``.npz`` file, then a dictionary-like object is<br/> returned, containing ``{filename: array}`` key-value pairs, one for<br/> each file in the archive.<br/> - If the file is a ``.npz`` file, the returned value supports the<br/> context manager protocol in a similar fashion to the open function::<br/> <br/> with load('foo.npz') as data:<br/> a = data['a']<br/> <br/> The underlying file descriptor is closed when exiting the 'with'<br/> block.<br/> <br/> Examples<br/> --------<br/> Store data to disk, and load it again:<br/> <br/> >>> np.save('/tmp/123', np.array([[1, 2, 3], [4, 5, 6]]))<br/> >>> np.load('/tmp/123.npy')<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> <br/> Store compressed data to disk, and load it again:<br/> <br/> >>> a=np.array([[1, 2, 3], [4, 5, 6]])<br/> >>> b=np.array([1, 2])<br/> >>> np.savez('/tmp/123.npz', a=a, b=b)<br/> >>> data = np.load('/tmp/123.npz')<br/> >>> data['a']<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> >>> data['b']<br/> array([1, 2])<br/> >>> data.close()<br/> <br/> Mem-map the stored array, and then access the second row<br/> directly from disk:<br/> <br/> >>> X = np.load('/tmp/123.npy', mmap_mode='r')<br/> >>> X[1, :]<br/> memmap([4, 5, 6])<br/> <br/> """<br/> import gzip<br/> <br/> own_fid = False<br/> if isinstance(file, basestring):<br/>> fid = open(file, "rb")<br/><span class="error">E IOError: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'</span><br/><br/>/home/darth_sidious/anaconda2/envs/tardis/lib/python2.7/site-packages/numpy/lib/npyio.py:362: IOError<br/></div></td></tr> <tr class="error results-table-row"> <td class="col-result">Error</td> <td class="col-name">lib.linux-x86_64-2.7/tardis/tests/tests_slow/test_w7.py::TestW7::()::test_j_blue_estimators::setup</td> <td class="col-duration">0.00</td> <td class="col-links"></td> <td class="extra"> <div class="log">self = <CallInfo when='setup' exception: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'><br/>func = <function <lambda> at 0x7fbbf16620c8>, when = 'setup'<br/><br/>> ???<br/><br/>_pytest.runner:149: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/>_pytest.runner:137: in <lambda><br/> ???<br/>_pytest.core:521: in __call__<br/> ???<br/>_pytest.core:528: in _docall<br/> ???<br/>_pytest.core:393: in execute<br/> ???<br/>_pytest.core:113: in wrapped_call<br/> ???<br/>_pytest.core:138: in get_result<br/> ???<br/>_pytest.core:123: in __init__<br/> ???<br/>_pytest.core:394: in execute<br/> ???<br/>_pytest.runner:86: in pytest_runtest_setup<br/> ???<br/>_pytest.runner:403: in prepare<br/> ???<br/>_pytest.python:1197: in setup<br/> ???<br/>_pytest.python:702: in fillfixtures<br/> ???<br/>_pytest.python:1345: in _fillfixtures<br/> ???<br/>_pytest.python:1388: in getfuncargvalue<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1883: in execute<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1896: in execute<br/> ???<br/>_pytest.python:1921: in execute<br/> ???<br/>_pytest.python:1842: in call_fixture_func<br/> ???<br/>tardis/tests/tests_slow/conftest.py:109: in reference<br/> "quantities2.npz")))<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>file = '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz', mmap_mode = None, allow_pickle = True, fix_imports = True, encoding = 'ASCII'<br/><br/> def load(file, mmap_mode=None, allow_pickle=True, fix_imports=True,<br/> encoding='ASCII'):<br/> """<br/> Load arrays or pickled objects from ``.npy``, ``.npz`` or pickled files.<br/> <br/> Parameters<br/> ----------<br/> file : file-like object or string<br/> The file to read. File-like objects must support the<br/> ``seek()`` and ``read()`` methods. Pickled files require that the<br/> file-like object support the ``readline()`` method as well.<br/> mmap_mode : {None, 'r+', 'r', 'w+', 'c'}, optional<br/> If not None, then memory-map the file, using the given mode (see<br/> `numpy.memmap` for a detailed description of the modes). A<br/> memory-mapped array is kept on disk. However, it can be accessed<br/> and sliced like any ndarray. Memory mapping is especially useful<br/> for accessing small fragments of large files without reading the<br/> entire file into memory.<br/> allow_pickle : bool, optional<br/> Allow loading pickled object arrays stored in npy files. Reasons for<br/> disallowing pickles include security, as loading pickled data can<br/> execute arbitrary code. If pickles are disallowed, loading object<br/> arrays will fail.<br/> Default: True<br/> fix_imports : bool, optional<br/> Only useful when loading Python 2 generated pickled files on Python 3,<br/> which includes npy/npz files containing object arrays. If `fix_imports`<br/> is True, pickle will try to map the old Python 2 names to the new names<br/> used in Python 3.<br/> encoding : str, optional<br/> What encoding to use when reading Python 2 strings. Only useful when<br/> loading Python 2 generated pickled files on Python 3, which includes<br/> npy/npz files containing object arrays. Values other than 'latin1',<br/> 'ASCII', and 'bytes' are not allowed, as they can corrupt numerical<br/> data. Default: 'ASCII'<br/> <br/> Returns<br/> -------<br/> result : array, tuple, dict, etc.<br/> Data stored in the file. For ``.npz`` files, the returned instance<br/> of NpzFile class must be closed to avoid leaking file descriptors.<br/> <br/> Raises<br/> ------<br/> IOError<br/> If the input file does not exist or cannot be read.<br/> ValueError<br/> The file contains an object array, but allow_pickle=False given.<br/> <br/> See Also<br/> --------<br/> save, savez, savez_compressed, loadtxt<br/> memmap : Create a memory-map to an array stored in a file on disk.<br/> <br/> Notes<br/> -----<br/> - If the file contains pickle data, then whatever object is stored<br/> in the pickle is returned.<br/> - If the file is a ``.npy`` file, then a single array is returned.<br/> - If the file is a ``.npz`` file, then a dictionary-like object is<br/> returned, containing ``{filename: array}`` key-value pairs, one for<br/> each file in the archive.<br/> - If the file is a ``.npz`` file, the returned value supports the<br/> context manager protocol in a similar fashion to the open function::<br/> <br/> with load('foo.npz') as data:<br/> a = data['a']<br/> <br/> The underlying file descriptor is closed when exiting the 'with'<br/> block.<br/> <br/> Examples<br/> --------<br/> Store data to disk, and load it again:<br/> <br/> >>> np.save('/tmp/123', np.array([[1, 2, 3], [4, 5, 6]]))<br/> >>> np.load('/tmp/123.npy')<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> <br/> Store compressed data to disk, and load it again:<br/> <br/> >>> a=np.array([[1, 2, 3], [4, 5, 6]])<br/> >>> b=np.array([1, 2])<br/> >>> np.savez('/tmp/123.npz', a=a, b=b)<br/> >>> data = np.load('/tmp/123.npz')<br/> >>> data['a']<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> >>> data['b']<br/> array([1, 2])<br/> >>> data.close()<br/> <br/> Mem-map the stored array, and then access the second row<br/> directly from disk:<br/> <br/> >>> X = np.load('/tmp/123.npy', mmap_mode='r')<br/> >>> X[1, :]<br/> memmap([4, 5, 6])<br/> <br/> """<br/> import gzip<br/> <br/> own_fid = False<br/> if isinstance(file, basestring):<br/>> fid = open(file, "rb")<br/><span class="error">E IOError: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'</span><br/><br/>/home/darth_sidious/anaconda2/envs/tardis/lib/python2.7/site-packages/numpy/lib/npyio.py:362: IOError<br/></div></td></tr> <tr class="error results-table-row"> <td class="col-result">Error</td> <td class="col-name">lib.linux-x86_64-2.7/tardis/tests/tests_slow/test_w7.py::TestW7::()::test_last_line_interactions::setup</td> <td class="col-duration">0.00</td> <td class="col-links"></td> <td class="extra"> <div class="log">self = <CallInfo when='setup' exception: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'><br/>func = <function <lambda> at 0x7fbbea9d8410>, when = 'setup'<br/><br/>> ???<br/><br/>_pytest.runner:149: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/>_pytest.runner:137: in <lambda><br/> ???<br/>_pytest.core:521: in __call__<br/> ???<br/>_pytest.core:528: in _docall<br/> ???<br/>_pytest.core:393: in execute<br/> ???<br/>_pytest.core:113: in wrapped_call<br/> ???<br/>_pytest.core:138: in get_result<br/> ???<br/>_pytest.core:123: in __init__<br/> ???<br/>_pytest.core:394: in execute<br/> ???<br/>_pytest.runner:86: in pytest_runtest_setup<br/> ???<br/>_pytest.runner:403: in prepare<br/> ???<br/>_pytest.python:1197: in setup<br/> ???<br/>_pytest.python:702: in fillfixtures<br/> ???<br/>_pytest.python:1345: in _fillfixtures<br/> ???<br/>_pytest.python:1388: in getfuncargvalue<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1883: in execute<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1896: in execute<br/> ???<br/>_pytest.python:1921: in execute<br/> ???<br/>_pytest.python:1842: in call_fixture_func<br/> ???<br/>tardis/tests/tests_slow/conftest.py:109: in reference<br/> "quantities2.npz")))<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>file = '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz', mmap_mode = None, allow_pickle = True, fix_imports = True, encoding = 'ASCII'<br/><br/> def load(file, mmap_mode=None, allow_pickle=True, fix_imports=True,<br/> encoding='ASCII'):<br/> """<br/> Load arrays or pickled objects from ``.npy``, ``.npz`` or pickled files.<br/> <br/> Parameters<br/> ----------<br/> file : file-like object or string<br/> The file to read. File-like objects must support the<br/> ``seek()`` and ``read()`` methods. Pickled files require that the<br/> file-like object support the ``readline()`` method as well.<br/> mmap_mode : {None, 'r+', 'r', 'w+', 'c'}, optional<br/> If not None, then memory-map the file, using the given mode (see<br/> `numpy.memmap` for a detailed description of the modes). A<br/> memory-mapped array is kept on disk. However, it can be accessed<br/> and sliced like any ndarray. Memory mapping is especially useful<br/> for accessing small fragments of large files without reading the<br/> entire file into memory.<br/> allow_pickle : bool, optional<br/> Allow loading pickled object arrays stored in npy files. Reasons for<br/> disallowing pickles include security, as loading pickled data can<br/> execute arbitrary code. If pickles are disallowed, loading object<br/> arrays will fail.<br/> Default: True<br/> fix_imports : bool, optional<br/> Only useful when loading Python 2 generated pickled files on Python 3,<br/> which includes npy/npz files containing object arrays. If `fix_imports`<br/> is True, pickle will try to map the old Python 2 names to the new names<br/> used in Python 3.<br/> encoding : str, optional<br/> What encoding to use when reading Python 2 strings. Only useful when<br/> loading Python 2 generated pickled files on Python 3, which includes<br/> npy/npz files containing object arrays. Values other than 'latin1',<br/> 'ASCII', and 'bytes' are not allowed, as they can corrupt numerical<br/> data. Default: 'ASCII'<br/> <br/> Returns<br/> -------<br/> result : array, tuple, dict, etc.<br/> Data stored in the file. For ``.npz`` files, the returned instance<br/> of NpzFile class must be closed to avoid leaking file descriptors.<br/> <br/> Raises<br/> ------<br/> IOError<br/> If the input file does not exist or cannot be read.<br/> ValueError<br/> The file contains an object array, but allow_pickle=False given.<br/> <br/> See Also<br/> --------<br/> save, savez, savez_compressed, loadtxt<br/> memmap : Create a memory-map to an array stored in a file on disk.<br/> <br/> Notes<br/> -----<br/> - If the file contains pickle data, then whatever object is stored<br/> in the pickle is returned.<br/> - If the file is a ``.npy`` file, then a single array is returned.<br/> - If the file is a ``.npz`` file, then a dictionary-like object is<br/> returned, containing ``{filename: array}`` key-value pairs, one for<br/> each file in the archive.<br/> - If the file is a ``.npz`` file, the returned value supports the<br/> context manager protocol in a similar fashion to the open function::<br/> <br/> with load('foo.npz') as data:<br/> a = data['a']<br/> <br/> The underlying file descriptor is closed when exiting the 'with'<br/> block.<br/> <br/> Examples<br/> --------<br/> Store data to disk, and load it again:<br/> <br/> >>> np.save('/tmp/123', np.array([[1, 2, 3], [4, 5, 6]]))<br/> >>> np.load('/tmp/123.npy')<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> <br/> Store compressed data to disk, and load it again:<br/> <br/> >>> a=np.array([[1, 2, 3], [4, 5, 6]])<br/> >>> b=np.array([1, 2])<br/> >>> np.savez('/tmp/123.npz', a=a, b=b)<br/> >>> data = np.load('/tmp/123.npz')<br/> >>> data['a']<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> >>> data['b']<br/> array([1, 2])<br/> >>> data.close()<br/> <br/> Mem-map the stored array, and then access the second row<br/> directly from disk:<br/> <br/> >>> X = np.load('/tmp/123.npy', mmap_mode='r')<br/> >>> X[1, :]<br/> memmap([4, 5, 6])<br/> <br/> """<br/> import gzip<br/> <br/> own_fid = False<br/> if isinstance(file, basestring):<br/>> fid = open(file, "rb")<br/><span class="error">E IOError: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'</span><br/><br/>/home/darth_sidious/anaconda2/envs/tardis/lib/python2.7/site-packages/numpy/lib/npyio.py:362: IOError<br/></div></td></tr> <tr class="error results-table-row"> <td class="col-result">Error</td> <td class="col-name">lib.linux-x86_64-2.7/tardis/tests/tests_slow/test_w7.py::TestW7::()::test_nubar_estimators::setup</td> <td class="col-duration">0.00</td> <td class="col-links"></td> <td class="extra"> <div class="log">self = <CallInfo when='setup' exception: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'><br/>func = <function <lambda> at 0x7fbbe6f24578>, when = 'setup'<br/><br/>> ???<br/><br/>_pytest.runner:149: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/>_pytest.runner:137: in <lambda><br/> ???<br/>_pytest.core:521: in __call__<br/> ???<br/>_pytest.core:528: in _docall<br/> ???<br/>_pytest.core:393: in execute<br/> ???<br/>_pytest.core:113: in wrapped_call<br/> ???<br/>_pytest.core:138: in get_result<br/> ???<br/>_pytest.core:123: in __init__<br/> ???<br/>_pytest.core:394: in execute<br/> ???<br/>_pytest.runner:86: in pytest_runtest_setup<br/> ???<br/>_pytest.runner:403: in prepare<br/> ???<br/>_pytest.python:1197: in setup<br/> ???<br/>_pytest.python:702: in fillfixtures<br/> ???<br/>_pytest.python:1345: in _fillfixtures<br/> ???<br/>_pytest.python:1388: in getfuncargvalue<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1883: in execute<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1896: in execute<br/> ???<br/>_pytest.python:1921: in execute<br/> ???<br/>_pytest.python:1842: in call_fixture_func<br/> ???<br/>tardis/tests/tests_slow/conftest.py:109: in reference<br/> "quantities2.npz")))<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>file = '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz', mmap_mode = None, allow_pickle = True, fix_imports = True, encoding = 'ASCII'<br/><br/> def load(file, mmap_mode=None, allow_pickle=True, fix_imports=True,<br/> encoding='ASCII'):<br/> """<br/> Load arrays or pickled objects from ``.npy``, ``.npz`` or pickled files.<br/> <br/> Parameters<br/> ----------<br/> file : file-like object or string<br/> The file to read. File-like objects must support the<br/> ``seek()`` and ``read()`` methods. Pickled files require that the<br/> file-like object support the ``readline()`` method as well.<br/> mmap_mode : {None, 'r+', 'r', 'w+', 'c'}, optional<br/> If not None, then memory-map the file, using the given mode (see<br/> `numpy.memmap` for a detailed description of the modes). A<br/> memory-mapped array is kept on disk. However, it can be accessed<br/> and sliced like any ndarray. Memory mapping is especially useful<br/> for accessing small fragments of large files without reading the<br/> entire file into memory.<br/> allow_pickle : bool, optional<br/> Allow loading pickled object arrays stored in npy files. Reasons for<br/> disallowing pickles include security, as loading pickled data can<br/> execute arbitrary code. If pickles are disallowed, loading object<br/> arrays will fail.<br/> Default: True<br/> fix_imports : bool, optional<br/> Only useful when loading Python 2 generated pickled files on Python 3,<br/> which includes npy/npz files containing object arrays. If `fix_imports`<br/> is True, pickle will try to map the old Python 2 names to the new names<br/> used in Python 3.<br/> encoding : str, optional<br/> What encoding to use when reading Python 2 strings. Only useful when<br/> loading Python 2 generated pickled files on Python 3, which includes<br/> npy/npz files containing object arrays. Values other than 'latin1',<br/> 'ASCII', and 'bytes' are not allowed, as they can corrupt numerical<br/> data. Default: 'ASCII'<br/> <br/> Returns<br/> -------<br/> result : array, tuple, dict, etc.<br/> Data stored in the file. For ``.npz`` files, the returned instance<br/> of NpzFile class must be closed to avoid leaking file descriptors.<br/> <br/> Raises<br/> ------<br/> IOError<br/> If the input file does not exist or cannot be read.<br/> ValueError<br/> The file contains an object array, but allow_pickle=False given.<br/> <br/> See Also<br/> --------<br/> save, savez, savez_compressed, loadtxt<br/> memmap : Create a memory-map to an array stored in a file on disk.<br/> <br/> Notes<br/> -----<br/> - If the file contains pickle data, then whatever object is stored<br/> in the pickle is returned.<br/> - If the file is a ``.npy`` file, then a single array is returned.<br/> - If the file is a ``.npz`` file, then a dictionary-like object is<br/> returned, containing ``{filename: array}`` key-value pairs, one for<br/> each file in the archive.<br/> - If the file is a ``.npz`` file, the returned value supports the<br/> context manager protocol in a similar fashion to the open function::<br/> <br/> with load('foo.npz') as data:<br/> a = data['a']<br/> <br/> The underlying file descriptor is closed when exiting the 'with'<br/> block.<br/> <br/> Examples<br/> --------<br/> Store data to disk, and load it again:<br/> <br/> >>> np.save('/tmp/123', np.array([[1, 2, 3], [4, 5, 6]]))<br/> >>> np.load('/tmp/123.npy')<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> <br/> Store compressed data to disk, and load it again:<br/> <br/> >>> a=np.array([[1, 2, 3], [4, 5, 6]])<br/> >>> b=np.array([1, 2])<br/> >>> np.savez('/tmp/123.npz', a=a, b=b)<br/> >>> data = np.load('/tmp/123.npz')<br/> >>> data['a']<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> >>> data['b']<br/> array([1, 2])<br/> >>> data.close()<br/> <br/> Mem-map the stored array, and then access the second row<br/> directly from disk:<br/> <br/> >>> X = np.load('/tmp/123.npy', mmap_mode='r')<br/> >>> X[1, :]<br/> memmap([4, 5, 6])<br/> <br/> """<br/> import gzip<br/> <br/> own_fid = False<br/> if isinstance(file, basestring):<br/>> fid = open(file, "rb")<br/><span class="error">E IOError: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'</span><br/><br/>/home/darth_sidious/anaconda2/envs/tardis/lib/python2.7/site-packages/numpy/lib/npyio.py:362: IOError<br/></div></td></tr> <tr class="error results-table-row"> <td class="col-result">Error</td> <td class="col-name">lib.linux-x86_64-2.7/tardis/tests/tests_slow/test_w7.py::TestW7::()::test_ws::setup</td> <td class="col-duration">0.00</td> <td class="col-links"></td> <td class="extra"> <div class="log">self = <CallInfo when='setup' exception: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'><br/>func = <function <lambda> at 0x7fbbe6f82aa0>, when = 'setup'<br/><br/>> ???<br/><br/>_pytest.runner:149: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/>_pytest.runner:137: in <lambda><br/> ???<br/>_pytest.core:521: in __call__<br/> ???<br/>_pytest.core:528: in _docall<br/> ???<br/>_pytest.core:393: in execute<br/> ???<br/>_pytest.core:113: in wrapped_call<br/> ???<br/>_pytest.core:138: in get_result<br/> ???<br/>_pytest.core:123: in __init__<br/> ???<br/>_pytest.core:394: in execute<br/> ???<br/>_pytest.runner:86: in pytest_runtest_setup<br/> ???<br/>_pytest.runner:403: in prepare<br/> ???<br/>_pytest.python:1197: in setup<br/> ???<br/>_pytest.python:702: in fillfixtures<br/> ???<br/>_pytest.python:1345: in _fillfixtures<br/> ???<br/>_pytest.python:1388: in getfuncargvalue<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1883: in execute<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1896: in execute<br/> ???<br/>_pytest.python:1921: in execute<br/> ???<br/>_pytest.python:1842: in call_fixture_func<br/> ???<br/>tardis/tests/tests_slow/conftest.py:109: in reference<br/> "quantities2.npz")))<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>file = '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz', mmap_mode = None, allow_pickle = True, fix_imports = True, encoding = 'ASCII'<br/><br/> def load(file, mmap_mode=None, allow_pickle=True, fix_imports=True,<br/> encoding='ASCII'):<br/> """<br/> Load arrays or pickled objects from ``.npy``, ``.npz`` or pickled files.<br/> <br/> Parameters<br/> ----------<br/> file : file-like object or string<br/> The file to read. File-like objects must support the<br/> ``seek()`` and ``read()`` methods. Pickled files require that the<br/> file-like object support the ``readline()`` method as well.<br/> mmap_mode : {None, 'r+', 'r', 'w+', 'c'}, optional<br/> If not None, then memory-map the file, using the given mode (see<br/> `numpy.memmap` for a detailed description of the modes). A<br/> memory-mapped array is kept on disk. However, it can be accessed<br/> and sliced like any ndarray. Memory mapping is especially useful<br/> for accessing small fragments of large files without reading the<br/> entire file into memory.<br/> allow_pickle : bool, optional<br/> Allow loading pickled object arrays stored in npy files. Reasons for<br/> disallowing pickles include security, as loading pickled data can<br/> execute arbitrary code. If pickles are disallowed, loading object<br/> arrays will fail.<br/> Default: True<br/> fix_imports : bool, optional<br/> Only useful when loading Python 2 generated pickled files on Python 3,<br/> which includes npy/npz files containing object arrays. If `fix_imports`<br/> is True, pickle will try to map the old Python 2 names to the new names<br/> used in Python 3.<br/> encoding : str, optional<br/> What encoding to use when reading Python 2 strings. Only useful when<br/> loading Python 2 generated pickled files on Python 3, which includes<br/> npy/npz files containing object arrays. Values other than 'latin1',<br/> 'ASCII', and 'bytes' are not allowed, as they can corrupt numerical<br/> data. Default: 'ASCII'<br/> <br/> Returns<br/> -------<br/> result : array, tuple, dict, etc.<br/> Data stored in the file. For ``.npz`` files, the returned instance<br/> of NpzFile class must be closed to avoid leaking file descriptors.<br/> <br/> Raises<br/> ------<br/> IOError<br/> If the input file does not exist or cannot be read.<br/> ValueError<br/> The file contains an object array, but allow_pickle=False given.<br/> <br/> See Also<br/> --------<br/> save, savez, savez_compressed, loadtxt<br/> memmap : Create a memory-map to an array stored in a file on disk.<br/> <br/> Notes<br/> -----<br/> - If the file contains pickle data, then whatever object is stored<br/> in the pickle is returned.<br/> - If the file is a ``.npy`` file, then a single array is returned.<br/> - If the file is a ``.npz`` file, then a dictionary-like object is<br/> returned, containing ``{filename: array}`` key-value pairs, one for<br/> each file in the archive.<br/> - If the file is a ``.npz`` file, the returned value supports the<br/> context manager protocol in a similar fashion to the open function::<br/> <br/> with load('foo.npz') as data:<br/> a = data['a']<br/> <br/> The underlying file descriptor is closed when exiting the 'with'<br/> block.<br/> <br/> Examples<br/> --------<br/> Store data to disk, and load it again:<br/> <br/> >>> np.save('/tmp/123', np.array([[1, 2, 3], [4, 5, 6]]))<br/> >>> np.load('/tmp/123.npy')<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> <br/> Store compressed data to disk, and load it again:<br/> <br/> >>> a=np.array([[1, 2, 3], [4, 5, 6]])<br/> >>> b=np.array([1, 2])<br/> >>> np.savez('/tmp/123.npz', a=a, b=b)<br/> >>> data = np.load('/tmp/123.npz')<br/> >>> data['a']<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> >>> data['b']<br/> array([1, 2])<br/> >>> data.close()<br/> <br/> Mem-map the stored array, and then access the second row<br/> directly from disk:<br/> <br/> >>> X = np.load('/tmp/123.npy', mmap_mode='r')<br/> >>> X[1, :]<br/> memmap([4, 5, 6])<br/> <br/> """<br/> import gzip<br/> <br/> own_fid = False<br/> if isinstance(file, basestring):<br/>> fid = open(file, "rb")<br/><span class="error">E IOError: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'</span><br/><br/>/home/darth_sidious/anaconda2/envs/tardis/lib/python2.7/site-packages/numpy/lib/npyio.py:362: IOError<br/></div></td></tr> <tr class="error results-table-row"> <td class="col-result">Error</td> <td class="col-name">lib.linux-x86_64-2.7/tardis/tests/tests_slow/test_w7.py::TestW7::()::test_luminosity_inner::setup</td> <td class="col-duration">0.00</td> <td class="col-links"></td> <td class="extra"> <div class="log">self = <CallInfo when='setup' exception: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'><br/>func = <function <lambda> at 0x7fbbe6f82c80>, when = 'setup'<br/><br/>> ???<br/><br/>_pytest.runner:149: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/>_pytest.runner:137: in <lambda><br/> ???<br/>_pytest.core:521: in __call__<br/> ???<br/>_pytest.core:528: in _docall<br/> ???<br/>_pytest.core:393: in execute<br/> ???<br/>_pytest.core:113: in wrapped_call<br/> ???<br/>_pytest.core:138: in get_result<br/> ???<br/>_pytest.core:123: in __init__<br/> ???<br/>_pytest.core:394: in execute<br/> ???<br/>_pytest.runner:86: in pytest_runtest_setup<br/> ???<br/>_pytest.runner:403: in prepare<br/> ???<br/>_pytest.python:1197: in setup<br/> ???<br/>_pytest.python:702: in fillfixtures<br/> ???<br/>_pytest.python:1345: in _fillfixtures<br/> ???<br/>_pytest.python:1388: in getfuncargvalue<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1883: in execute<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1896: in execute<br/> ???<br/>_pytest.python:1921: in execute<br/> ???<br/>_pytest.python:1842: in call_fixture_func<br/> ???<br/>tardis/tests/tests_slow/conftest.py:109: in reference<br/> "quantities2.npz")))<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>file = '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz', mmap_mode = None, allow_pickle = True, fix_imports = True, encoding = 'ASCII'<br/><br/> def load(file, mmap_mode=None, allow_pickle=True, fix_imports=True,<br/> encoding='ASCII'):<br/> """<br/> Load arrays or pickled objects from ``.npy``, ``.npz`` or pickled files.<br/> <br/> Parameters<br/> ----------<br/> file : file-like object or string<br/> The file to read. File-like objects must support the<br/> ``seek()`` and ``read()`` methods. Pickled files require that the<br/> file-like object support the ``readline()`` method as well.<br/> mmap_mode : {None, 'r+', 'r', 'w+', 'c'}, optional<br/> If not None, then memory-map the file, using the given mode (see<br/> `numpy.memmap` for a detailed description of the modes). A<br/> memory-mapped array is kept on disk. However, it can be accessed<br/> and sliced like any ndarray. Memory mapping is especially useful<br/> for accessing small fragments of large files without reading the<br/> entire file into memory.<br/> allow_pickle : bool, optional<br/> Allow loading pickled object arrays stored in npy files. Reasons for<br/> disallowing pickles include security, as loading pickled data can<br/> execute arbitrary code. If pickles are disallowed, loading object<br/> arrays will fail.<br/> Default: True<br/> fix_imports : bool, optional<br/> Only useful when loading Python 2 generated pickled files on Python 3,<br/> which includes npy/npz files containing object arrays. If `fix_imports`<br/> is True, pickle will try to map the old Python 2 names to the new names<br/> used in Python 3.<br/> encoding : str, optional<br/> What encoding to use when reading Python 2 strings. Only useful when<br/> loading Python 2 generated pickled files on Python 3, which includes<br/> npy/npz files containing object arrays. Values other than 'latin1',<br/> 'ASCII', and 'bytes' are not allowed, as they can corrupt numerical<br/> data. Default: 'ASCII'<br/> <br/> Returns<br/> -------<br/> result : array, tuple, dict, etc.<br/> Data stored in the file. For ``.npz`` files, the returned instance<br/> of NpzFile class must be closed to avoid leaking file descriptors.<br/> <br/> Raises<br/> ------<br/> IOError<br/> If the input file does not exist or cannot be read.<br/> ValueError<br/> The file contains an object array, but allow_pickle=False given.<br/> <br/> See Also<br/> --------<br/> save, savez, savez_compressed, loadtxt<br/> memmap : Create a memory-map to an array stored in a file on disk.<br/> <br/> Notes<br/> -----<br/> - If the file contains pickle data, then whatever object is stored<br/> in the pickle is returned.<br/> - If the file is a ``.npy`` file, then a single array is returned.<br/> - If the file is a ``.npz`` file, then a dictionary-like object is<br/> returned, containing ``{filename: array}`` key-value pairs, one for<br/> each file in the archive.<br/> - If the file is a ``.npz`` file, the returned value supports the<br/> context manager protocol in a similar fashion to the open function::<br/> <br/> with load('foo.npz') as data:<br/> a = data['a']<br/> <br/> The underlying file descriptor is closed when exiting the 'with'<br/> block.<br/> <br/> Examples<br/> --------<br/> Store data to disk, and load it again:<br/> <br/> >>> np.save('/tmp/123', np.array([[1, 2, 3], [4, 5, 6]]))<br/> >>> np.load('/tmp/123.npy')<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> <br/> Store compressed data to disk, and load it again:<br/> <br/> >>> a=np.array([[1, 2, 3], [4, 5, 6]])<br/> >>> b=np.array([1, 2])<br/> >>> np.savez('/tmp/123.npz', a=a, b=b)<br/> >>> data = np.load('/tmp/123.npz')<br/> >>> data['a']<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> >>> data['b']<br/> array([1, 2])<br/> >>> data.close()<br/> <br/> Mem-map the stored array, and then access the second row<br/> directly from disk:<br/> <br/> >>> X = np.load('/tmp/123.npy', mmap_mode='r')<br/> >>> X[1, :]<br/> memmap([4, 5, 6])<br/> <br/> """<br/> import gzip<br/> <br/> own_fid = False<br/> if isinstance(file, basestring):<br/>> fid = open(file, "rb")<br/><span class="error">E IOError: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'</span><br/><br/>/home/darth_sidious/anaconda2/envs/tardis/lib/python2.7/site-packages/numpy/lib/npyio.py:362: IOError<br/></div></td></tr> <tr class="error results-table-row"> <td class="col-result">Error</td> <td class="col-name">lib.linux-x86_64-2.7/tardis/tests/tests_slow/test_w7.py::TestW7::()::test_spectrum::setup</td> <td class="col-duration">0.00</td> <td class="col-links"></td> <td class="extra"> <div class="log">self = <CallInfo when='setup' exception: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'><br/>func = <function <lambda> at 0x7fbbe6def5f0>, when = 'setup'<br/><br/>> ???<br/><br/>_pytest.runner:149: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/>_pytest.runner:137: in <lambda><br/> ???<br/>_pytest.core:521: in __call__<br/> ???<br/>_pytest.core:528: in _docall<br/> ???<br/>_pytest.core:393: in execute<br/> ???<br/>_pytest.core:113: in wrapped_call<br/> ???<br/>_pytest.core:138: in get_result<br/> ???<br/>_pytest.core:123: in __init__<br/> ???<br/>_pytest.core:394: in execute<br/> ???<br/>_pytest.runner:86: in pytest_runtest_setup<br/> ???<br/>_pytest.runner:403: in prepare<br/> ???<br/>_pytest.python:1197: in setup<br/> ???<br/>_pytest.python:702: in fillfixtures<br/> ???<br/>_pytest.python:1345: in _fillfixtures<br/> ???<br/>_pytest.python:1388: in getfuncargvalue<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1883: in execute<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1896: in execute<br/> ???<br/>_pytest.python:1921: in execute<br/> ???<br/>_pytest.python:1842: in call_fixture_func<br/> ???<br/>tardis/tests/tests_slow/conftest.py:109: in reference<br/> "quantities2.npz")))<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>file = '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz', mmap_mode = None, allow_pickle = True, fix_imports = True, encoding = 'ASCII'<br/><br/> def load(file, mmap_mode=None, allow_pickle=True, fix_imports=True,<br/> encoding='ASCII'):<br/> """<br/> Load arrays or pickled objects from ``.npy``, ``.npz`` or pickled files.<br/> <br/> Parameters<br/> ----------<br/> file : file-like object or string<br/> The file to read. File-like objects must support the<br/> ``seek()`` and ``read()`` methods. Pickled files require that the<br/> file-like object support the ``readline()`` method as well.<br/> mmap_mode : {None, 'r+', 'r', 'w+', 'c'}, optional<br/> If not None, then memory-map the file, using the given mode (see<br/> `numpy.memmap` for a detailed description of the modes). A<br/> memory-mapped array is kept on disk. However, it can be accessed<br/> and sliced like any ndarray. Memory mapping is especially useful<br/> for accessing small fragments of large files without reading the<br/> entire file into memory.<br/> allow_pickle : bool, optional<br/> Allow loading pickled object arrays stored in npy files. Reasons for<br/> disallowing pickles include security, as loading pickled data can<br/> execute arbitrary code. If pickles are disallowed, loading object<br/> arrays will fail.<br/> Default: True<br/> fix_imports : bool, optional<br/> Only useful when loading Python 2 generated pickled files on Python 3,<br/> which includes npy/npz files containing object arrays. If `fix_imports`<br/> is True, pickle will try to map the old Python 2 names to the new names<br/> used in Python 3.<br/> encoding : str, optional<br/> What encoding to use when reading Python 2 strings. Only useful when<br/> loading Python 2 generated pickled files on Python 3, which includes<br/> npy/npz files containing object arrays. Values other than 'latin1',<br/> 'ASCII', and 'bytes' are not allowed, as they can corrupt numerical<br/> data. Default: 'ASCII'<br/> <br/> Returns<br/> -------<br/> result : array, tuple, dict, etc.<br/> Data stored in the file. For ``.npz`` files, the returned instance<br/> of NpzFile class must be closed to avoid leaking file descriptors.<br/> <br/> Raises<br/> ------<br/> IOError<br/> If the input file does not exist or cannot be read.<br/> ValueError<br/> The file contains an object array, but allow_pickle=False given.<br/> <br/> See Also<br/> --------<br/> save, savez, savez_compressed, loadtxt<br/> memmap : Create a memory-map to an array stored in a file on disk.<br/> <br/> Notes<br/> -----<br/> - If the file contains pickle data, then whatever object is stored<br/> in the pickle is returned.<br/> - If the file is a ``.npy`` file, then a single array is returned.<br/> - If the file is a ``.npz`` file, then a dictionary-like object is<br/> returned, containing ``{filename: array}`` key-value pairs, one for<br/> each file in the archive.<br/> - If the file is a ``.npz`` file, the returned value supports the<br/> context manager protocol in a similar fashion to the open function::<br/> <br/> with load('foo.npz') as data:<br/> a = data['a']<br/> <br/> The underlying file descriptor is closed when exiting the 'with'<br/> block.<br/> <br/> Examples<br/> --------<br/> Store data to disk, and load it again:<br/> <br/> >>> np.save('/tmp/123', np.array([[1, 2, 3], [4, 5, 6]]))<br/> >>> np.load('/tmp/123.npy')<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> <br/> Store compressed data to disk, and load it again:<br/> <br/> >>> a=np.array([[1, 2, 3], [4, 5, 6]])<br/> >>> b=np.array([1, 2])<br/> >>> np.savez('/tmp/123.npz', a=a, b=b)<br/> >>> data = np.load('/tmp/123.npz')<br/> >>> data['a']<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> >>> data['b']<br/> array([1, 2])<br/> >>> data.close()<br/> <br/> Mem-map the stored array, and then access the second row<br/> directly from disk:<br/> <br/> >>> X = np.load('/tmp/123.npy', mmap_mode='r')<br/> >>> X[1, :]<br/> memmap([4, 5, 6])<br/> <br/> """<br/> import gzip<br/> <br/> own_fid = False<br/> if isinstance(file, basestring):<br/>> fid = open(file, "rb")<br/><span class="error">E IOError: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'</span><br/><br/>/home/darth_sidious/anaconda2/envs/tardis/lib/python2.7/site-packages/numpy/lib/npyio.py:362: IOError<br/></div></td></tr> <tr class="error results-table-row"> <td class="col-result">Error</td> <td class="col-name">lib.linux-x86_64-2.7/tardis/tests/tests_slow/test_w7.py::TestW7::()::test_montecarlo_properties::setup</td> <td class="col-duration">0.00</td> <td class="col-links"></td> <td class="extra"> <div class="log">self = <CallInfo when='setup' exception: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'><br/>func = <function <lambda> at 0x7fbbe6def668>, when = 'setup'<br/><br/>> ???<br/><br/>_pytest.runner:149: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/>_pytest.runner:137: in <lambda><br/> ???<br/>_pytest.core:521: in __call__<br/> ???<br/>_pytest.core:528: in _docall<br/> ???<br/>_pytest.core:393: in execute<br/> ???<br/>_pytest.core:113: in wrapped_call<br/> ???<br/>_pytest.core:138: in get_result<br/> ???<br/>_pytest.core:123: in __init__<br/> ???<br/>_pytest.core:394: in execute<br/> ???<br/>_pytest.runner:86: in pytest_runtest_setup<br/> ???<br/>_pytest.runner:403: in prepare<br/> ???<br/>_pytest.python:1197: in setup<br/> ???<br/>_pytest.python:702: in fillfixtures<br/> ???<br/>_pytest.python:1345: in _fillfixtures<br/> ???<br/>_pytest.python:1388: in getfuncargvalue<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1883: in execute<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1896: in execute<br/> ???<br/>_pytest.python:1921: in execute<br/> ???<br/>_pytest.python:1842: in call_fixture_func<br/> ???<br/>tardis/tests/tests_slow/conftest.py:109: in reference<br/> "quantities2.npz")))<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>file = '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz', mmap_mode = None, allow_pickle = True, fix_imports = True, encoding = 'ASCII'<br/><br/> def load(file, mmap_mode=None, allow_pickle=True, fix_imports=True,<br/> encoding='ASCII'):<br/> """<br/> Load arrays or pickled objects from ``.npy``, ``.npz`` or pickled files.<br/> <br/> Parameters<br/> ----------<br/> file : file-like object or string<br/> The file to read. File-like objects must support the<br/> ``seek()`` and ``read()`` methods. Pickled files require that the<br/> file-like object support the ``readline()`` method as well.<br/> mmap_mode : {None, 'r+', 'r', 'w+', 'c'}, optional<br/> If not None, then memory-map the file, using the given mode (see<br/> `numpy.memmap` for a detailed description of the modes). A<br/> memory-mapped array is kept on disk. However, it can be accessed<br/> and sliced like any ndarray. Memory mapping is especially useful<br/> for accessing small fragments of large files without reading the<br/> entire file into memory.<br/> allow_pickle : bool, optional<br/> Allow loading pickled object arrays stored in npy files. Reasons for<br/> disallowing pickles include security, as loading pickled data can<br/> execute arbitrary code. If pickles are disallowed, loading object<br/> arrays will fail.<br/> Default: True<br/> fix_imports : bool, optional<br/> Only useful when loading Python 2 generated pickled files on Python 3,<br/> which includes npy/npz files containing object arrays. If `fix_imports`<br/> is True, pickle will try to map the old Python 2 names to the new names<br/> used in Python 3.<br/> encoding : str, optional<br/> What encoding to use when reading Python 2 strings. Only useful when<br/> loading Python 2 generated pickled files on Python 3, which includes<br/> npy/npz files containing object arrays. Values other than 'latin1',<br/> 'ASCII', and 'bytes' are not allowed, as they can corrupt numerical<br/> data. Default: 'ASCII'<br/> <br/> Returns<br/> -------<br/> result : array, tuple, dict, etc.<br/> Data stored in the file. For ``.npz`` files, the returned instance<br/> of NpzFile class must be closed to avoid leaking file descriptors.<br/> <br/> Raises<br/> ------<br/> IOError<br/> If the input file does not exist or cannot be read.<br/> ValueError<br/> The file contains an object array, but allow_pickle=False given.<br/> <br/> See Also<br/> --------<br/> save, savez, savez_compressed, loadtxt<br/> memmap : Create a memory-map to an array stored in a file on disk.<br/> <br/> Notes<br/> -----<br/> - If the file contains pickle data, then whatever object is stored<br/> in the pickle is returned.<br/> - If the file is a ``.npy`` file, then a single array is returned.<br/> - If the file is a ``.npz`` file, then a dictionary-like object is<br/> returned, containing ``{filename: array}`` key-value pairs, one for<br/> each file in the archive.<br/> - If the file is a ``.npz`` file, the returned value supports the<br/> context manager protocol in a similar fashion to the open function::<br/> <br/> with load('foo.npz') as data:<br/> a = data['a']<br/> <br/> The underlying file descriptor is closed when exiting the 'with'<br/> block.<br/> <br/> Examples<br/> --------<br/> Store data to disk, and load it again:<br/> <br/> >>> np.save('/tmp/123', np.array([[1, 2, 3], [4, 5, 6]]))<br/> >>> np.load('/tmp/123.npy')<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> <br/> Store compressed data to disk, and load it again:<br/> <br/> >>> a=np.array([[1, 2, 3], [4, 5, 6]])<br/> >>> b=np.array([1, 2])<br/> >>> np.savez('/tmp/123.npz', a=a, b=b)<br/> >>> data = np.load('/tmp/123.npz')<br/> >>> data['a']<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> >>> data['b']<br/> array([1, 2])<br/> >>> data.close()<br/> <br/> Mem-map the stored array, and then access the second row<br/> directly from disk:<br/> <br/> >>> X = np.load('/tmp/123.npy', mmap_mode='r')<br/> >>> X[1, :]<br/> memmap([4, 5, 6])<br/> <br/> """<br/> import gzip<br/> <br/> own_fid = False<br/> if isinstance(file, basestring):<br/>> fid = open(file, "rb")<br/><span class="error">E IOError: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'</span><br/><br/>/home/darth_sidious/anaconda2/envs/tardis/lib/python2.7/site-packages/numpy/lib/npyio.py:362: IOError<br/></div></td></tr> <tr class="error results-table-row"> <td class="col-result">Error</td> <td class="col-name">lib.linux-x86_64-2.7/tardis/tests/tests_slow/test_w7.py::TestW7::()::test_shell_temperature::setup</td> <td class="col-duration">0.00</td> <td class="col-links"></td> <td class="extra"> <div class="log">self = <CallInfo when='setup' exception: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'><br/>func = <function <lambda> at 0x7fbbe6f57578>, when = 'setup'<br/><br/>> ???<br/><br/>_pytest.runner:149: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/>_pytest.runner:137: in <lambda><br/> ???<br/>_pytest.core:521: in __call__<br/> ???<br/>_pytest.core:528: in _docall<br/> ???<br/>_pytest.core:393: in execute<br/> ???<br/>_pytest.core:113: in wrapped_call<br/> ???<br/>_pytest.core:138: in get_result<br/> ???<br/>_pytest.core:123: in __init__<br/> ???<br/>_pytest.core:394: in execute<br/> ???<br/>_pytest.runner:86: in pytest_runtest_setup<br/> ???<br/>_pytest.runner:403: in prepare<br/> ???<br/>_pytest.python:1197: in setup<br/> ???<br/>_pytest.python:702: in fillfixtures<br/> ???<br/>_pytest.python:1345: in _fillfixtures<br/> ???<br/>_pytest.python:1388: in getfuncargvalue<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1883: in execute<br/> ???<br/>_pytest.python:1405: in _get_active_fixturedef<br/> ???<br/>_pytest.python:1451: in _getfuncargvalue<br/> ???<br/>_pytest.python:1896: in execute<br/> ???<br/>_pytest.python:1921: in execute<br/> ???<br/>_pytest.python:1842: in call_fixture_func<br/> ???<br/>tardis/tests/tests_slow/conftest.py:109: in reference<br/> "quantities2.npz")))<br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>file = '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz', mmap_mode = None, allow_pickle = True, fix_imports = True, encoding = 'ASCII'<br/><br/> def load(file, mmap_mode=None, allow_pickle=True, fix_imports=True,<br/> encoding='ASCII'):<br/> """<br/> Load arrays or pickled objects from ``.npy``, ``.npz`` or pickled files.<br/> <br/> Parameters<br/> ----------<br/> file : file-like object or string<br/> The file to read. File-like objects must support the<br/> ``seek()`` and ``read()`` methods. Pickled files require that the<br/> file-like object support the ``readline()`` method as well.<br/> mmap_mode : {None, 'r+', 'r', 'w+', 'c'}, optional<br/> If not None, then memory-map the file, using the given mode (see<br/> `numpy.memmap` for a detailed description of the modes). A<br/> memory-mapped array is kept on disk. However, it can be accessed<br/> and sliced like any ndarray. Memory mapping is especially useful<br/> for accessing small fragments of large files without reading the<br/> entire file into memory.<br/> allow_pickle : bool, optional<br/> Allow loading pickled object arrays stored in npy files. Reasons for<br/> disallowing pickles include security, as loading pickled data can<br/> execute arbitrary code. If pickles are disallowed, loading object<br/> arrays will fail.<br/> Default: True<br/> fix_imports : bool, optional<br/> Only useful when loading Python 2 generated pickled files on Python 3,<br/> which includes npy/npz files containing object arrays. If `fix_imports`<br/> is True, pickle will try to map the old Python 2 names to the new names<br/> used in Python 3.<br/> encoding : str, optional<br/> What encoding to use when reading Python 2 strings. Only useful when<br/> loading Python 2 generated pickled files on Python 3, which includes<br/> npy/npz files containing object arrays. Values other than 'latin1',<br/> 'ASCII', and 'bytes' are not allowed, as they can corrupt numerical<br/> data. Default: 'ASCII'<br/> <br/> Returns<br/> -------<br/> result : array, tuple, dict, etc.<br/> Data stored in the file. For ``.npz`` files, the returned instance<br/> of NpzFile class must be closed to avoid leaking file descriptors.<br/> <br/> Raises<br/> ------<br/> IOError<br/> If the input file does not exist or cannot be read.<br/> ValueError<br/> The file contains an object array, but allow_pickle=False given.<br/> <br/> See Also<br/> --------<br/> save, savez, savez_compressed, loadtxt<br/> memmap : Create a memory-map to an array stored in a file on disk.<br/> <br/> Notes<br/> -----<br/> - If the file contains pickle data, then whatever object is stored<br/> in the pickle is returned.<br/> - If the file is a ``.npy`` file, then a single array is returned.<br/> - If the file is a ``.npz`` file, then a dictionary-like object is<br/> returned, containing ``{filename: array}`` key-value pairs, one for<br/> each file in the archive.<br/> - If the file is a ``.npz`` file, the returned value supports the<br/> context manager protocol in a similar fashion to the open function::<br/> <br/> with load('foo.npz') as data:<br/> a = data['a']<br/> <br/> The underlying file descriptor is closed when exiting the 'with'<br/> block.<br/> <br/> Examples<br/> --------<br/> Store data to disk, and load it again:<br/> <br/> >>> np.save('/tmp/123', np.array([[1, 2, 3], [4, 5, 6]]))<br/> >>> np.load('/tmp/123.npy')<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> <br/> Store compressed data to disk, and load it again:<br/> <br/> >>> a=np.array([[1, 2, 3], [4, 5, 6]])<br/> >>> b=np.array([1, 2])<br/> >>> np.savez('/tmp/123.npz', a=a, b=b)<br/> >>> data = np.load('/tmp/123.npz')<br/> >>> data['a']<br/> array([[1, 2, 3],<br/> [4, 5, 6]])<br/> >>> data['b']<br/> array([1, 2])<br/> >>> data.close()<br/> <br/> Mem-map the stored array, and then access the second row<br/> directly from disk:<br/> <br/> >>> X = np.load('/tmp/123.npy', mmap_mode='r')<br/> >>> X[1, :]<br/> memmap([4, 5, 6])<br/> <br/> """<br/> import gzip<br/> <br/> own_fid = False<br/> if isinstance(file, basestring):<br/>> fid = open(file, "rb")<br/><span class="error">E IOError: [Errno 2] No such file or directory: '/home/darth_sidious/Documents/TARDIS/slow/w7/quantities2.npz'</span><br/><br/>/home/darth_sidious/anaconda2/envs/tardis/lib/python2.7/site-packages/numpy/lib/npyio.py:362: IOError<br/></div></td></tr></tbody></table></body></html>
Save
Preview
Cancel
Edit summary
Note: By editing this page you agree to license your content under the following license:
CC Attribution-Share Alike 3.0 Unported
reports/74fa0e8.1466154434.txt.gz
· Last modified: 2016/06/17 11:07 by
karandesai96
Page Tools
Show page
Old revisions
Backlinks
Back to top