Skip to content

Instantly share code, notes, and snippets.

@vcloitre
vcloitre / gist:7a034ce1ee4d9f19012c
Created July 1, 2015 18:42
Resetting index fixes somewhat the issue...
>>> resources = resources.reset_index()
>>> resources['Quantity']
0 400
1 400
2 400
3 400
4 400
5 400
6 400
7 400
@vcloitre
vcloitre / gist:b3b55df38568708be4a6
Created June 30, 2015 16:51
Metrics change data structure
>>> import cymetric as cym
>>> db = cym.dbopen('deploy_thr_output.sqlite')
>>> evaler = cym.Evaluator(db, write=False)
>>> resources = evaler.eval('Resources')
>>> resources['Quantity']
0 400
1 400
2 400
3 400
4 400
@vcloitre
vcloitre / gist:6c2e95a3c988c3fa3e47
Created April 17, 2015 19:19
Lifetimes error DeployInst
$ cyclus -o test_output.sqlite deploy_one_reactor.xml
:
.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
CCCC ,;; ;;: CCCC ; : CCCCi
CCC ;; ;; CC ;;: CCC` `C;
@vcloitre
vcloitre / gist:1e974df08c6b2a2323df
Created April 15, 2015 14:07
ERROR(core ):query result has no such field outcommod
$ cyclus /Users/vincentcloitre/Desktop/Simulations/2_Sources_3_Reactors.xml &> out
$ cat out
:
.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
CCCC ,;; ;;: CCCC ; : CCCCi
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /Users/vincentcloitre/build
[ 34%] Built target cyclus
[ 35%] Built target gtest
[ 37%] Built target baseagentunittests
[ 38%] Built target TestAgent
[ 39%] Built target TestFacility
[ 40%] Built target TestInst