alpha mating crashing

Bug #650980 reported by Andrés Pérez-Figueroa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
newAge
Fix Committed
Undecided
Unassigned

Bug Description

When apply alpha males, the program crashes

Traceback (most recent call last):
  File "/home/andres/tasks/NewAge/soft/src/NewAge/Sim/LifeHistory.py", line 16, in callPreOps
    pop.dvars().history.checkAlphas(pop)
  File "/home/andres/tasks/NewAge/soft/src/NewAge/Sim/LifeHistory.py", line 296, in checkAlphas
    expected = int(self.pars.alphaProp*pop.dvars(p).numOfMales)
  File "/home/andres/soft/simuPOP-1.0.2/build/lib.linux-i686-2.6/simuPOP/__init__.py", line 357, in dvars
    return _dw(self.vars(*args, **kwargs))
ValueError: Population local namespace does not have key 'subPop'. You may forgot to call the Stat operator, or use the 'vars' parameter to generate subpopulation-specific statistics.
Traceback (most recent call last):
  File "/home/andres/tasks/NewAge/soft/src/NewAge/UI/wxUI.py", line 290, in __simulate
    evolution.evolve(pars.runTime)
  File "/home/andres/tasks/NewAge/soft/src/NewAge/Sim/Evolution.py", line 59, in evolve
    gen = gens,
ValueError: Function call failed.

Revision history for this message
Andrés Pérez-Figueroa (andres-perez-figueroa) wrote :
Revision history for this message
Tiago Antao (tiagoantao) wrote : Re: [Bug 650980] Re: alpha mating crashing

I am adding all these configs to the distribution. Serve both as
examples and future test cases. Will fix this today.

2010/9/29 Andrés Pérez-Figueroa <email address hidden>:
>
> ** Attachment added: "config"
>   https://bugs.launchpad.net/bugs/650980/+attachment/1652566/+files/config
>
> --
> alpha mating crashing
> https://bugs.launchpad.net/bugs/650980
> You received this bug notification because you are a member of newAge,
> which is the registrant for newAge.
>
> Status in newAge: A population genetics workbench to simulate and analise age-structured populations: New
>
> Bug description:
> When apply alpha males, the program crashes
>
> Traceback (most recent call last):
>  File "/home/andres/tasks/NewAge/soft/src/NewAge/Sim/LifeHistory.py", line 16, in callPreOps
>    pop.dvars().history.checkAlphas(pop)
>  File "/home/andres/tasks/NewAge/soft/src/NewAge/Sim/LifeHistory.py", line 296, in checkAlphas
>    expected = int(self.pars.alphaProp*pop.dvars(p).numOfMales)
>  File "/home/andres/soft/simuPOP-1.0.2/build/lib.linux-i686-2.6/simuPOP/__init__.py", line 357, in dvars
>    return _dw(self.vars(*args, **kwargs))
> ValueError: Population local namespace does not have key 'subPop'. You may forgot to call the Stat operator, or use the 'vars' parameter to generate subpopulation-specific statistics.
> Traceback (most recent call last):
>  File "/home/andres/tasks/NewAge/soft/src/NewAge/UI/wxUI.py", line 290, in __simulate
>    evolution.evolve(pars.runTime)
>  File "/home/andres/tasks/NewAge/soft/src/NewAge/Sim/Evolution.py", line 59, in evolve
>    gen          = gens,
> ValueError: Function call failed.
>
>
>

--
"If you want to get laid, go to college.  If you want an education, go
to the library." - Frank Zappa

Tiago Antao (tiagoantao)
Changed in newage:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.