Skip to content

Instantly share code, notes, and snippets.

View jdangerx's full-sized avatar
🐢
writing slow code slowly

Dazhong Xia jdangerx

🐢
writing slow code slowly
  • Catalyst Cooperative
  • Cambridge, MA
View GitHub Profile
@jdangerx
jdangerx / full_output
Last active August 29, 2015 14:10
segfaulting openmc tallies.xml
.d88888b. 888b d888 .d8888b.
d88P" "Y88b 8888b d8888 d88P Y88b
888 888 88888b.d88888 888 888
888 888 88888b. .d88b. 88888b. 888Y88888P888 888
888 888 888 "88b d8P Y8b 888 "88b 888 Y888P 888 888
888 888 888 888 88888888 888 888 888 Y8P 888 888 888
Y88b. .d88P 888 d88P Y8b. 888 888 888 " 888 Y88b d88P
"Y88888P" 88888P" "Y8888 888 888 888 888 "Y8888P"
__________________888______________________________________________________
@jdangerx
jdangerx / geometry
Last active August 29, 2015 14:10
openmc failure with code -9
<?xml version="1.0"?>
<geometry>
<cell id="1" fill="5" surfaces="1 -2 3 -4" />
<cell id="101" universe="1" material="1" surfaces="-5" />
<cell id="102" universe="1" material="void" surfaces="5 -6" />
<cell id="103" universe="1" material="3" surfaces="6 -7" />
<cell id="104" universe="1" material="2" surfaces="7" />
<cell id="201" universe="2" material="2" surfaces="8" />
<cell id="302" universe="3" material="3" surfaces="9" />
<lattice id="5">
@jdangerx
jdangerx / log
Last active August 29, 2015 14:07
new new pyne test failures
E.....................................E.................................EEESS.SSSSSS...................................................S.E.EEEEE.................EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE.EEEE.E............./home/john/pyne/tests/test_endf.py:842: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
obs = library.integrate_tab_range(1, exp_Eint, exp_xs)
...........................................................................E........................SSSSSSS................................................................................................................FE..........................................................EEEE................S.....................................................................S.....................................................................S
======================================================================
ERROR: test suite for <module 'transmute.test_chainsolve' from '/home/john/pyne/tests/transmute/test_c
@jdangerx
jdangerx / gist:f67e64c3f64c92a08e55
Created October 9, 2014 03:59
new pyne test failures
.............................................................................EESS.SSSSSS.................................S....EEEE....................................................................../home/john/pyne/tests/test_endf.py:842: FutureWarning: comparison to `None` will result in an elementwise object comparison in the future.
obs = library.integrate_tab_range(1, exp_Eint, exp_xs)
...............................................................................................................................................E.EF................................SSSSSSS.........................................................................................................................................................................................S.............................................................................................................S
======================================================================
ERROR: test_ace.test_read_c12_ascii
--------------------------------------
@jdangerx
jdangerx / gist:98797f22ba045009b6d2
Created October 8, 2014 01:17
pyne test failure
EEEEEEE................................SEEEEEE.............................ESSEESEE..................E..............S
======================================================================
ERROR: Failure: ImportError (/home/john/.virtualenvs/cnerg/lib/python3.4/site-packages/pyne/nucname.cpython-34m.so: undefined symbol: _ZN4pyne7nucname7zz_nameE)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/john/.virtualenvs/cnerg/lib/python3.4/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/home/john/.virtualenvs/cnerg/lib/python3.4/site-packages/nose/loader.py", line 414, in loadTestsFromName
addr.filename, addr.module)
File "/home/john/.virtualenvs/cnerg/lib/python3.4/site-packages/nose/importer.py", line 47, in importFromPath
@jdangerx
jdangerx / gist:df8cb80e2b8ee0b0e492
Created August 12, 2014 16:54
Pocketsphinx.js test failures
With living recognizer: Recognizing audio (18, 16, 34)Rerun97 ms
Recognizer instantiated successfully
Recognizer should process successfully
Recognizer should stop successfully
Recognizer should recognize the correct utterance
Segmentation should be initialized empty
okay
Segmentation should not be empty after filled in
Value stored in Segmentation should be the correct one
.d88888b. 888b d888 .d8888b.
d88P" "Y88b 8888b d8888 d88P Y88b
888 888 88888b.d88888 888 888
888 888 88888b. .d88b. 88888b. 888Y88888P888 888
888 888 888 "88b d8P Y8b 888 "88b 888 Y888P 888 888
888 888 888 888 88888888 888 888 888 Y8P 888 888 888
Y88b. .d88P 888 d88P Y8b. 888 888 888 " 888 Y88b d88P
"Y88888P" 88888P" "Y8888 888 888 888 888 "Y8888P"
__________________888______________________________________________________
FFEFFFEFFFEFFFEFFFEFFEFFEFFEFFEFFEFFEFFEFFEFFFEFFFEFFFEFFFEFFFEFFFEFFFEFFFEFFFEFFFEFFEFFEFFEFFFFE.FEE........FFEFFEFFEFFEFFEFFEFFEFFEFFFEFFFEFFFEFFFEFFFEFFFEFFFEFFFEFFFEFFFEFFFEFFFEFFFEFFEFFEFFEFFEFFEFFEFFEFFEEFEEFEEFEFFEFFEFFFEFFEFFEFFEFFEFFE
======================================================================
ERROR: test_basic.test_results
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/john/.virtualenvs/pyne/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/john/openmc/tests/test_basic/test_basic.py", line 33, in test_results
call(['python', 'results.py', statepoint[0]])
IndexError: list index out of range
@jdangerx
jdangerx / gist:7568815
Created November 20, 2013 18:53
scav parser. no item parsing yet
def split_into_sections(fh):
with open(fh, 'r') as f:
scavlist = f.read().split("\n")
scavlympics = get_section(scavlist, "Scav Olympics")
items = get_section(scavlist, "Items")
return scavlympics, items
def get_section(lst, section):
begin = lst.index("\\section*{{{}}}".format(section))
end = lst[begin:].index("\\end{list}")
@jdangerx
jdangerx / Ghost_Council_1.md
Last active December 25, 2015 11:39
Ghost Council of Max Palevsky, Sat Oct 12 2013

Team Structure

  • Over-organization and under-organization both lead to more stress
  • Roles should be relatively clearly defined
    • pictures of people in leadership roles should be available
    • armbands of authority?
  • with regards to recruitment: we should get to know first-years pre-hunt
    • This lets us filter for good page captains and special forces people etc

Roles we need filled