Skip to content

Instantly share code, notes, and snippets.

View katyhuff's full-sized avatar

Katy Huff katyhuff

View GitHub Profile
@katyhuff
katyhuff / ControlFlow.ipynb
Created November 4, 2012 19:47
This is a python notebook giving a quick rundown of Control Flow, for the Software Carpentry Teaching01 section.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@katyhuff
katyhuff / scipy_sched.rst
Created June 28, 2013 14:48
scipy2013 sprint room schedule
sprint room coordinator
mystic 107 mckerns
bokeh 103 bryan
numba 106 oliphant
@katyhuff
katyhuff / acros.tex
Last active April 12, 2016 18:17
A list of acronyms, in LaTeX Glossaries package format, that Katy Huff uses in her papers and writings as a nuclear engineer.
%\newacronym{<++>}{<++>}{<++>}
\newacronym[longplural={metric tons of heavy metal}]{MTHM}{MTHM}{metric ton of heavy metal}
\newacronym{ABM}{ABM}{agent-based modeling}
\newacronym{AHTR}{AHTR}{Advanced High Temperature Reactor}
\newacronym{ANDRA}{ANDRA}{Agence Nationale pour la gestion des D\'echets RAdioactifs, the French National Agency for Radioactive Waste Management}
\newacronym{ANL}{ANL}{Argonne National Laboratory}
\newacronym{API}{API}{application programming interface}
\newacronym{ASME}{ASME}{American Society of Mechanical Engineers}
\newacronym{ATWS}{ATWS}{Anticipated Transient Without Scram}
\newacronym{BDBE}{BDBE}{Beyond Design Basis Event}
gov_ids = [('France', 1),
('Germ', 2),
('Switz', 3),
('Sweden', 4),
('Finland', 5),
('Hungary', 6),
('Norway', 7),
('Spain', 8)]
@katyhuff
katyhuff / issues
Last active April 26, 2017 15:25 — forked from jbae11/issues
# cycamore::reactor should have a fungibility factor
### Current:
`cycamore::reactor` will not accept material output from `cycamore::Fuelfab` (mox) because the `cycamore::reactor`
judges material acceptance depending on recipe as well as commodity name. The `cycamore::Fuelfab`
does not create output according to a recipe, but mixes input fissile material streams to fulfil
neutronics properties.
An example input file which fails to move matrial from FuelFab to the reactor can be found here: [simple_reprocess.xml](https://gist.github.com/3e8e2cb882597c040b93fe66de4261ca.git).
### Suggested Long Term Solution:
def main():
step = 0
output[step] = somefile
for step in dep_steps:
infile = rewrite_infile(output[step-1])
output[step] = run_serpent(infile)
def rewrite_infile(outfile):
#do stuff with pyne
[----------] 2 tests from RegionClassTests
[ RUN ] RegionClassTests.TickIter
Exception ignored in: 'pymodule.py_del_agent'
NameError: name 'cyclib' is not defined
Exception ignored in: 'pymodule.py_del_agent'
NameError: name 'cyclib' is not defined
Exception ignored in: 'pymodule.py_del_agent'
NameError: name 'cyclib' is not defined
[ OK ] RegionClassTests.TickIter (48 ms)
[ RUN ] RegionClassTests.TockIter
cyc-user@cyclusbox:~/cyclus/teststub$ python install.py --clean-build --prefix=../install/
/usr/bin/cmake
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- 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
-- Detecting C compile features
-- Detecting C compile features - done
cyc-user@cyclusbox:~/cyclus$ mkdir testlib
cyc-user@cyclusbox:~/cyclus$ cd testlib/
cyc-user@cyclusbox:~/cyclus/testlib$ cycstub --type facility teststub:testlib:TestFacility
/home/cyc-user/cyclus/install/bin/cyclus
Exception ignored in: 'pymodule.clear_pyagent_refs'
NameError: name 'cyclib' is not defined
cyc-user@cyclusbox:~/cyclus/testlib$ cd ..
cyc-user@cyclusbox:~/cyclus$ rm -rf testlib/
cyc-user@cyclusbox:~/cyclus$ mkdir teststub
cyc-user@cyclusbox:~/cyclus$ cd teststub/
cyc-user@cyclusbox:~/cyclus/hybrid$ python install.py --clean-build --prefix=../install
/usr/bin/cmake
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- 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
-- Detecting C compile features
-- Detecting C compile features - done