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
Calling build_transition matrix before calling apply_selection throws:
---------------------------------------------------------------------------KeyErrorTraceback (mostrecentcalllast)
<ipython-input-10-0b8c154ec8f7>in<module>1gpmsm.build_transition_matrix( fixation_model=mccandlish,
---->2population_size=100)
~/Documents/research/projects/pkgs/gpvolve/gpvolve/markovmodel.pyinbuild_transition_matrix(self, fixation_model, **params)
9697# Get fitnesses of all nodes.--->98fitness1=np.array([self.node[node]['fitness'] fornodeinnodepairs[0]])
99fitness2=np.array([self.node[node]['fitness'] fornodeinnodepairs[1]])
100~/Documents/research/projects/pkgs/gpvolve/gpvolve/markovmodel.pyin<listcomp>(.0)
9697# Get fitnesses of all nodes.--->98fitness1=np.array([self.node[node]['fitness'] fornodeinnodepairs[0]])
99fitness2=np.array([self.node[node]['fitness'] fornodeinnodepairs[1]])
100KeyError: 'fitness'
This is a cryptic error. Exception should point users to apply_selection method.
The text was updated successfully, but these errors were encountered:
Calling
build_transition matrix
before callingapply_selection
throws:This is a cryptic error. Exception should point users to
apply_selection
method.The text was updated successfully, but these errors were encountered: