<div dir="ltr">This is it:<br><br>-record(sensor,<br> {id, name, cx_id, scape, vl, fanout_ids = [], generation}).<br>-record(actuator,<br> {id, name, cx_id, scape, vl, fanin_ids = [], generation}).<br>-record(neuron,<br>
{id, generation, cx_id, af, input_idps = [], output_ids = [], ro_ids = []}).<br>-record(cortex,<br> {id, agent_id, neuron_ids = [], sensor_ids = [], actuator_ids = []}).<br>-record(agent,<br> {id, generation, population_id, specie_id, cx_id, fingerprint, constraint,<br>
evo_hist = [], fitness, innovation_factor = 0, pattern = []}).<br>-record(specie,<br> {id, population_id, fingerprint, constraint, agent_ids = [], <br> champion_ids = [], dead_pool = [], fitness, innovation_factor = 0}).<br>
-record(population,<br> {id, polis_id, specie_ids = [], morphologies = [], innovation_factor}).<br>-record(constraint,<br> {morphology = xor_mimic, neural_afs = [tanh, cos, gauss, abs]}).<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Aug 16, 2014 at 2:35 AM, Steve Strong <span dir="ltr"><<a href="mailto:steve@srstrong.com" target="_blank">steve@srstrong.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto"><div>I'm guessing that this:</div><div><br></div><div><pre style="margin-top:0px;margin-bottom:0px;width:748px"><div><font face="UICTFontTextStyleBody"><span style="white-space:normal;background-color:rgba(255,255,255,0)"> <span>Morphology</span> <span style="font-weight:bold">=</span> <span>SpecCon</span><span>#constraint.morphology</span><span>,</span></span></font></div>
</pre><div><br></div>Is setting Morphology to 'undefined' - that's what the stack trace looks to be saying.</div><div><br></div><div>Cheers,</div><div><br></div><div>Steve</div><div><br><span>Sent from my iPhone</span></div>
<div><div class="h5"><div><br>On 16 Aug 2014, at 04:54, "Yves S. Garret" <<a href="mailto:yoursurrogategod@gmail.com" target="_blank">yoursurrogategod@gmail.com</a>> wrote:<br><br></div><blockquote type="cite">
<div><div dir="ltr"><div>Hello,<br><br></div>This is my code:<br><a href="https://gist.github.com/anonymous/5b9b2c55a7684f5386e2" target="_blank">https://gist.github.com/anonymous/5b9b2c55a7684f5386e2</a><br><div><br>When I run my code inside of erlang (17.0), this is the error that I get:<br>
7> genotype:create_test().<br>{aborted,{undef,[{morphology,undefined,[sensors],[]},<br> {morphology,get_InitSensors,1,<br> [{file,"morphology.erl"},{line,8}]},<br>
{genotype,construct_Cortex,3,<br>
[{file,"genotype.erl"},{line,41}]},<br> {genotype,construct_Agent,3,<br> [{file,"genotype.erl"},{line,20}]},<br> {genotype,'-create_test/0-fun-0-',0,<br>
[{file,"genotype.erl"},{line,434}]},<br> {mnesia_tm,apply_fun,3,[{file,"mnesia_tm.erl"},{line,833}]},<br> {mnesia_tm,execute_transaction,5,<br>
[{file,"mnesia_tm.erl"},{line,813}]},<br> {erl_eval,do_apply,6,[{file,"erl_eval.erl"},{line,661}]}]}}<br><br></div><div>genotype.erl and morphology.erl are in the directory, so why can't genotype's function call morphology's functions? Or am I missing something else entirely?<br>
<br></div><div>Thanks.<br></div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><div class=""><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a></span><br>
<span><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></div></blockquote></div></blockquote></div><br></div>