Skip to content

Instantly share code, notes, and snippets.

@scopatz
scopatz / cython-async.ipynb
Created January 3, 2017 09:10
async failure in Cython
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scopatz
scopatz / out.txt
Created September 20, 2016 17:41
cyclus 1.4.0-rc test failure
scopatz@artemis ~/cyclus/tests v1.4.0-rc3 $ nosetests
............................................................................................................................................F....../home/scopatz/cyclus/tests/helper.py:142: VisibleDeprecationWarning: converting an array with ndim > 0 to an index will result in an error in the future
entries[name][agent_entry[idx]['EnterTime']] += 1
./home/scopatz/cyclus/tests/helper.py:142: VisibleDeprecationWarning: converting an array with ndim > 0 to an index will result in an error in the future
entries[name][agent_entry[idx]['EnterTime']] += 1
./home/scopatz/cyclus/tests/helper.py:142: VisibleDeprecationWarning: converting an array with ndim > 0 to an index will result in an error in the future
entries[name][agent_entry[idx]['EnterTime']] += 1
..............................................................................................................................................................................................................
This file has been truncated, but you can view the full file.
<!doctype html>
<html ng-app="Application">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Imports profiling results</title>
<style>
body { margin:0 0 50px; padding:0; font-size:14px; font-family:Helvetica,Arial,sans-serif }
table { border-collapse:collapse; border-spacing:0; width:100% }
@scopatz
scopatz / import-times.txt
Last active June 12, 2016 04:41
xonsh --shell-type=readline -c "pass" | sort -gr
0.04105353355407715 xonsh.shell ('Shell',)
0.04066586494445801 xonsh.execer ('Execer',)
0.03061532974243164 xonsh.built_ins ('load_builtins', 'unload_builtins')
0.014927148818969727 xonsh.aliases ('Aliases', 'make_default_aliases')
0.01446223258972168 xonsh.inspectors ('Inspector',)
0.013646602630615234 xonsh.environ ('DEFAULT_VALUES',)
0.013408422470092773 xonsh ('pyghooks',)
0.013401031494140625 xonsh.pyghooks ()
0.007863998413085938 pygments.lexers.agile ('PythonLexer',)
0.006082773208618164 inspect None
scopatz@artemis ~/cyclus/tests v1.4.0-release $ env "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:
`·.,¸,.·*¯`·.,¸,.·*¯`·.,¸,.·*¯`·.,¸,.·*¯`·.,¸,. $HOME/miniconda3/lib" nosetests
............................................................................................................................................EFFFFFFFFFEF....FEE
======================================================================
ERROR: test_abi.test_abi_stability
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/scopatz/miniconda3/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/scopatz/cyclus/tests/test_abi.py", line 31, in test_abi_stability
@scopatz
scopatz / develop linker errors
Created October 24, 2015 20:11
cyclus linker issues
[ 49%] Linking CXX executable ../bin/cyclus
CMakeFiles/cyclus_cli.dir/cyclus.cc.o: In function `boost::program_options::validation_error::validation_error(boost::program_options::validation_error::kind_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)':
cyclus.cc:(.text._ZN5boost15program_options16validation_errorC2ENS1_6kind_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_i[_ZN5boost15program_options16validation_errorC5ENS1_6kind_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_i]+0x3d): undefined reference to `boost::program_options::validation_error::get_template[abi:cxx11](boost::program_options::validation_error::kind_t)'
cyclus.cc:(.text._ZN5boost15program_options16validation_errorC2ENS1_6kind_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_i[_ZN5boost15program_options16validation_errorC5ENS1_6kind_tERKNSt7__cxx1112basic_stringIcSt11char_tr
@scopatz
scopatz / ecip-errata-1.diff
Created September 4, 2015 02:17
ecip-errata-1.diff
- ~/fission/applications/power $ head -1 reactor.txt | tail -1
+ ~/fission/applications/power $ head -11 reactor.txt | tail -1
Of course, it would take quite a lot of fissions.
@scopatz
scopatz / ecip-errata-0.diff
Last active August 29, 2015 14:27
ecip-errata-0
- import pylab as plt
+ import matplotlib.pyplot as plt
@scopatz
scopatz / cyclus
Created April 2, 2015 15:54
cyclus vs cymetric build
scopatz@athenaie ~/cyclus develop $ ./install.py --build_type=Debug -j3
/home/scopatz/miniconda3/bin/cmake
-- The C compiler identification is GNU 4.9.1
-- The CXX compiler identification is GNU 4.9.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
{
"metadata": {
"name": "",
"signature": "sha256:d09425c8a20589f04c2b83ee13f52f67f1acd671f31bb9e75deccf668872eb11"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [