Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAISIE_format_IW fails when island empty #21

Closed
Neves-P opened this issue Jul 23, 2019 · 5 comments
Closed

DAISIE_format_IW fails when island empty #21

Neves-P opened this issue Jul 23, 2019 · 5 comments
Assignees
Labels
bug Something isn't working High priority Must be done ASAP

Comments

@Neves-P
Copy link
Collaborator

Neves-P commented Jul 23, 2019

If ran:

set.seed(1)
DAISIE::DAISIE_sim(
  time = 10,
  M = 1000,
  pars = c(1.0e+00, 4.0e-01, 1.5e+01, 1.0e-04, 2.0e-01),
  replicates = 100,
  divdepmodel = "IW"
)

on any branch develop or above format IW fails due to btimes being empty.

@Neves-P Neves-P self-assigned this Jul 23, 2019
@Neves-P Neves-P added bug Something isn't working High priority Must be done ASAP labels Jul 24, 2019
@Neves-P
Copy link
Collaborator Author

Neves-P commented Jul 24, 2019

I will try to get this working in the next couple of days, @joshwlambert, @xieshu95, have you done some changes in the format IW code? If so, that's absolutely fine, it's really how it goes, don't worry! 😄 If you have, could you point me in the broad direction of what you changed?

Neves-P added a commit that referenced this issue Jul 30, 2019
… there?

Unit test format_IW
Breaks test
Neves-P added a commit that referenced this issue Jul 30, 2019
break #21, format actually needs it's own testing!
Neves-P added a commit that referenced this issue Jul 30, 2019
break #21, format actually needs it's own testing! Test is now only done indirectly at test-DAISIE_sim

Merge branch 'pedro_ontogeny' of https://github.com/rsetienne/DAISIE into pedro_ontogeny

# Conflicts:
#	tests/testthat/test-DAISIE_sim.R
@Neves-P
Copy link
Collaborator Author

Neves-P commented Jul 30, 2019

This:

# island_list[[2]] = list(branching_times = totaltime, stac = 0, missing_species = 0)

was the offending line. Any idea why this was added, @xieshu95, @joshwlambert, @rsetienne, @richelbilderbeek. It's totally fine, but I fear that by "fixing" it I broke something of yours!

@richelbilderbeek
Copy link
Collaborator

Some people have a rule: 'If it can be removed without breaking tests, it should be removed'. Or the Beyonce principle: 'If you like it, then you gotta [sic] put a test on it'.

So, well done 👍

@joshwlambert
Copy link
Collaborator

joshwlambert commented Jul 30, 2019 via email

@Neves-P
Copy link
Collaborator Author

Neves-P commented Jul 31, 2019

Thanks, both! 😄

@Neves-P Neves-P closed this as completed Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working High priority Must be done ASAP
Projects
None yet
Development

No branches or pull requests

3 participants