Skip to content

Problem with FFPopSim #5

Description

@ang-one

Hi,

I am trying to run your program in order to simulate a neutral evolution.

However, every example I try to run ends with some errors.
Following, I report two of them.

If I run benefits_of_sex.py I have the following error:
''Traceback (most recent call last):
File "benefits_of_sex.py", line 32, in
pop.set_trait_additive(np.ones(L)*params.sel) # set additive contribution of each locus to s
File "../pkg/python/FFPopSim.py", line 3404, in set_trait_additive
if (len(args) > 1) and (args[1] >= self.number_of_traits):
NameError: global name 'args' is not defined''

Instead, if I run infinite_sites_model.py, I obtain:
Traceback (most recent call last):
File "infinite_sites_model.py", line 18, in
pop.all_polymorphic=True
AttributeError: can't set attribute

Could you help me to solve this issue?
Thank you for your attention.

Greetings,
Fabrizio

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions