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
Traceback (most recent call last):
File "/home/resplin5072/Projects/CoalMinerExamples/simulation_scripts/python/generate_data_stdpopsim.py", line 101, in <module>
generate_stdpopsim_data()
File "/home/resplin5072/Projects/CoalMinerExamples/simulation_scripts/python/generate_data_stdpopsim.py", line 98, in generate_stdpopsim_data
get_ara_tha_data()
File "/home/resplin5072/Projects/CoalMinerExamples/simulation_scripts/python/generate_data_stdpopsim.py", line 92, in get_ara_tha_data
generate_data(species, model, contig, samples)
File "/home/resplin5072/Projects/CoalMinerExamples/simulation_scripts/python/generate_data_stdpopsim.py", line 38, in generate_data
ts = engine.simulate(model, contig, samples, slim_scaling_factor=scaling_factor, slim_burn_in=10.0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/resplin5072/miniconda3/envs/coalminer_examples_env/lib/python3.12/site-packages/stdpopsim/slim_engine.py", line 1586, in simulate
self._run_slim(
File "/home/resplin5072/miniconda3/envs/coalminer_examples_env/lib/python3.12/site-packages/stdpopsim/slim_engine.py", line 1673, in _run_slim
raise SLiMException(
stdpopsim.slim_engine.SLiMException: slim exited with code 1.
ERROR (Population::SetMigration): migration fraction has to be within [0,1] (2.0 supplied).
Error on script line 1, character 22 (inside runtime script block):
{dbg(self.source); p1.setMigrationRates(0, 2.0);}
^^^^^^^^^^^^^^^^^
You can see that I've set the migration rates to 0.1 and 0.2, not 2.0 like the error suggests. I'm wondering if the translation to SLiM has some kind of miscommunication. If helpful, I can include the generated SLiM script.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have another SLiM error:
This happens when I run this code:
You can see that I've set the migration rates to 0.1 and 0.2, not 2.0 like the error suggests. I'm wondering if the translation to SLiM has some kind of miscommunication. If helpful, I can include the generated SLiM script.
Beta Was this translation helpful? Give feedback.
All reactions