You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is useful to specify a time interval over which mutations are generated. This should include an upper and lower bound. One way we could parameterise this is:
defmutate(ts,..., interval=None...):
ifintervalisNone:
interval=None, Nonestart, end=intervalifstartisNone:
start=0ifendisNone:
end=sys.float.max# whatever the notation for DBL_MAX is# Now generate mutations between from time start to end
Or we could have
defmutate(ts,..., start=None, end=None,...):
ifstartisNone:
start=0ifendisNone:
end=sys.float.max# whatever the notation for DBL_MAX is# Now generate mutations between from time start to end
start and end don't feel like quite the right names for the parameter though. interval is also a bad idea as this is used for trees to denote the genomic range they cover. Any better ideas would be very welcome!
Activity
hyanwong commentedon Jun 8, 2018
time_intervalortimespanmight be better?molpopgen commentedon Jun 8, 2018
@hyanwong makes a good suggestion. Other possibilities include
epoch,era, etc.jeromekelleher commentedon Aug 1, 2018
For symmetry with the rest of the API (see #541), these should be called
start_timeandend_time, and be half open (started included, end excluded).Add start_time and end_time to mutate.
Add start_time and end_time to mutate.