Skip to content

Instantly share code, notes, and snippets.

View opotowsky's full-sized avatar

Arrielle Opotowsky opotowsky

View GitHub Profile
@opotowsky
opotowsky / helloworld.py
Created April 28, 2023 15:31
mpi4py helloworld
"""
mpi4py Hello World
"""
from mpi4py import MPI
import sys
MPI_COMM = MPI.COMM_WORLD
size = MPI_COMM.Get_size()
rank = MPI_COMM.Get_rank()
@opotowsky
opotowsky / gist:6197b0c963da783b964493f32a47a10e
Created September 2, 2020 19:43
Troubleshooting Flux decreasing with increasing Ui Weight in ORIGEN
= History overview for case 'i1' (#1/1) =
= w17x17_enr4.5_mod0.71_pwr41_mtu1, 1 MTU: IRRAD+DECAY 1 =
-------------------------------------------------------------------------------------------------------------------------
step t0 t1 dt t flux fluence power energy
(-) (d) (d) (s) (s) (n/cm2-s) (n/cm2) (MW) (MWd)
1 0.0000E+00 1.0615E+03 9.1710E+07 9.1710E+07 3.5180E+14 3.2263E+22 4.1000E+01 4.3520E+04
= History overview for case 'i1' (#1/1) =
= w17x17_enr4.5_mod0.71_pwr41_mtu10, 10 MTU: IRRAD+DECAY 1 =
-----------------------------------------------------------------------------------------------------
@opotowsky
opotowsky / gr_fail
Created May 2, 2016 17:14
Cym failing with Growth Region
opy_eats_macaron ~/cyclus/testing $ cymetric test_gr.sqlite -e "from cymetric import cycamore_root_metrics; print(AgentState_cycamore_GrowthRegionInfo[:])"
/home/opy/.local/lib/python2.7/site-packages/cymetric/metrics.py:10: QAWarning: pyne.data is not yet QA compliant.
from pyne import data
/home/opy/.local/lib/python2.7/site-packages/cymetric/metrics.py:11: QAWarning: pyne.material is not yet QA compliant.
import pyne.enrichment as enr
/home/opy/.local/lib/python2.7/site-packages/cymetric/metrics.py:11: QAWarning: pyne.enrichment is not yet QA compliant.
import pyne.enrichment as enr
Traceback (most recent call last):
File "/home/opy/.local/bin/cymetric", line 4, in <module>
main()
@opotowsky
opotowsky / cym-single-tests
Last active April 25, 2016 18:23
The two failing tests in cymetric, and two passing (InventoryName is a vl string)
opy_eats_macaron ~/cyclus/cymetric/tests (expinv) $ nosetests -x -s test_metrics.py:test_agents
/home/opy/cyclus/cymetric/tests/test_metrics.py:17: QAWarning: pyne.data is not yet QA compliant.
from pyne import data
/home/opy/cyclus/cymetric/tests/test_metrics.py:18: QAWarning: pyne.material is not yet QA compliant.
import pyne.enrichment as enr
/home/opy/cyclus/cymetric/tests/test_metrics.py:18: QAWarning: pyne.enrichment is not yet QA compliant.
import pyne.enrichment as enr
F
======================================================================
FAIL: test_metrics.test_agents
@opotowsky
opotowsky / gist:eae2297ecef79bfe3548
Created January 4, 2016 19:23
cymetric test errors after manual hdf5 installation
opy_eats_macaron ~/cyclus/cymetric (develop) $ nosetests -w tests/ -v
/home/opy/.local/lib/python2.7/site-packages/pyne-0.5.0rc1-py2.7.egg/pyne/__init__.py:15: Warning: Error importing PyNE: you should not try to import PyNE from its source directory; please exit the PyNE source tree, and relaunch your python interpreter from there.
warn(msg, Warning)
:
.CL:CC CC _Q _Q _Q_Q _Q _Q _Q
CC;CCCCCCCC:C; /_\) /_\)/_/\\) /_\) /_\) /_\)
CCCCCCCCCCCCCl __O|/O___O|/O_OO|/O__O|/O__O|/O____________O|/O__
CCCCCCf iCCCLCC /////////////////////////////////////////////////
iCCCt ;;;;;. CCCC
CCCC ;;;;;;;;;. CClL. c
@opotowsky
opotowsky / gist:97d6517ac555dfb0af4f
Last active January 14, 2016 21:10
cym_testerr
opy_eats_macaron ~/cyclus/cymetric (gonuke-fix_hdf5) $ nosetests -w tests/
/home/opy/.local/lib/python2.7/site-packages/cymetric/metrics.py:10: QAWarning: pyne.data is not yet QA compliant.
from pyne import data
/home/opy/.local/lib/python2.7/site-packages/cymetric/metrics.py:11: QAWarning: pyne.material is not yet QA compliant.
import pyne.enrichment as enr
/home/opy/.local/lib/python2.7/site-packages/cymetric/metrics.py:11: QAWarning: pyne.enrichment is not yet QA compliant.
import pyne.enrichment as enr
:
.CL:CC CC _Q _Q _Q_Q _Q _Q _Q
CC;CCCCCCCC:C; /_\) /_\)/_/\\) /_\) /_\) /_\)
@opotowsky
opotowsky / gamma-sep23
Created September 23, 2015 22:39
Getting theoretical spectra from PyNE
{
"metadata": {
"name": "",
"signature": "sha256:9decc598ea7e541629c216e0a6761757ba9e0078ad404d93d6aa00aa83c927df"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@opotowsky
opotowsky / gist:6fe3230114f3bb4c04d4
Created August 13, 2015 17:32
Cym not playing well with others
tbl= 'Inventories'
cym.root_metric(name=tbl)
cym.exec_code("print({0}[:])".format(tbl), db)
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
/home/opotowsky/cyclus/temp/cycamore_root_metrics.py in <module>()
1 tbl= 'Inventories'
@opotowsky
opotowsky / test_seproots.ipynb
Created August 13, 2015 17:07
Separation of module-specific tables from cymetric
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@opotowsky
opotowsky / gamma-Copy0.ipynb
Created July 7, 2015 15:07
PyNE "Spectra" for Group Meeting
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.