This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct BuildOrder { | |
int time; | |
std::string prototype; | |
int num_to_build; | |
}; | |
INIT_VEC_TYPE(BuildOrder); | |
BEGIN_TYPES(); | |
DEFINE_TYPE(BuildOrder, time); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct BuildOrder { | |
int time; | |
std::string prototype; | |
int num_to_build; | |
}; | |
class Deployer: public Model { | |
public: | |
// ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import OrderedDict | |
class Node: | |
def __init__(self, name): | |
pass | |
def schema(self): | |
return 'UNSET-schema' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Recorder rec; | |
SqliteBack b("outfile.sqlite"); | |
rec.RegisterBackend(&b); | |
Context ctx(&ti, &rec); | |
int dur = 10; // # timesteps | |
ctx.InitSim(SimInfo(dur)); // this is in my dbinit PR | |
// create and add recipes to context if any | |
// ... | |
ctx.AddRecipe("[recipe-name]", recipe1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception ignored in: <bound method TestRegression.__del__ of <test_regression.TestRegression object at 0x7fdc38d480f0>> | |
Traceback (most recent call last): | |
File "/home/r/cyc/cycamore/tests/test_regression.py", line 51, in __del__ | |
for inf, outf in self.tmp_files_.items(): | |
AttributeError: 'TestRegression' object has no attribute 'tmp_files_' | |
Exception ignored in: <bound method TestRegression.__del__ of <test_regression.TestRegression object at 0x7fdc38d480f0>> | |
Traceback (most recent call last): | |
File "/home/r/cyc/cycamore/tests/test_regression.py", line 51, in __del__ | |
for inf, outf in self.tmp_files_.items(): | |
AttributeError: 'TestRegression' object has no attribute 'tmp_files_' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linking CXX shared library ../lib/cyclus/NullInst/cyclus/NullRegion/cyclus/Sink/libSinkTests.so | |
[ 42%] Building CXX object src/CMakeFiles/cycluscore.dir/institution.cc.o | |
In file included from /home/r/cyc/cyclus/src/hdf5_back.cc:2: | |
In file included from /home/r/cyc/cyclus/src/hdf5_back.h:8: | |
/home/r/cyc/cyclus/src/query_backend.h:227:18: error: call to function 'operator<' that is neither visible in the template definition nor found by argument-dependent lookup | |
rtn = (*x) < cond->val.cast<T>() ? true : false; | |
^ | |
/home/r/cyc/cyclus/src/query_backend.h:259:10: note: in instantiation of function template specialization 'cyclus::CmpCond<cyclus::Blob>' requested here | |
if (!CmpCond<T>(&(*x), (*conds)[i])) | |
^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<simulation> | |
<schematype>flat</schematype> | |
<control> | |
<duration>4800</duration> | |
<startmonth>1</startmonth> | |
<startyear>2000</startyear> | |
<simhandle>35</simhandle> | |
</control> | |
<archetypes> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cae account with forward-tunnel to office computer | |
Host cae | |
HostName best-tux.cae.wisc.edu | |
Port 22 | |
User rcarlsen | |
ForwardAgent yes | |
LocalForward localhost:2222 rc.ep.wisc.edu:22 | |
# alias for cae-tunnel to work machine. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<simulation> | |
<schematype>flat</schematype> | |
<control> | |
<duration>121</duration> | |
<startmonth>1</startmonth> | |
<startyear>2000</startyear> | |
<simhandle>207</simhandle> | |
</control> | |
<archetypes> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"puseries": | |
"SELECT ti.Time,SUM(cmp.MassFrac * inv.Quantity) FROM ( Compositions AS cmp INNER JOIN Inventories AS inv ON inv.QualId = cmp.QualId INNER JOIN TimeList AS ti ON (ti.Time >= inv.StartTime AND ti.Time < inv.EndTime)) WHERE ( inv.SimId = cmp.SimId AND ti.SimId = inv.SimId AND cmp.NucId = 942390000) GROUP BY ti.Time,cmp.NucId;", | |
"agentop": | |
"SELECT ag.Prototype,SUM(IFNULL(ag.ExitTime,Info.Duration)-ag.EnterTime) FROM Agents AS ag INNER JOIN Info ON Info.SimId = ag.SimId GROUP BY ag.Prototype;", | |
"trans": | |
"SELECT tr.Time,tr.Commodity,snd.Prototype,rcv.Prototype,rs.Quantity FROM Transactions AS tr INNER JOIN Resources AS rs ON rs.ResourceId = tr.ResourceId INNER JOIN Agents AS snd ON tr.SenderId = snd.AgentId INNER JOIN Agents AS rcv ON tr.ReceiverID = rcv.AgentId ORDER BY tr.Time,snd.Prototype,rcv.Prototype;" | |
} |
OlderNewer