Skip to content

Remove combine lists#17

Merged
eloch216 merged 2 commits intodevelopfrom
remove-combine-lists
Mar 11, 2026
Merged

Remove combine lists#17
eloch216 merged 2 commits intodevelopfrom
remove-combine-lists

Conversation

@eloch216
Copy link
Copy Markdown
Contributor

@eloch216 eloch216 commented Sep 5, 2025

Here I have removed the combine_lists function and replaced it with modifyList to avoid replicating part of base R.

A key difference between these functions is that the second argument to modifyList must be a list, while combine_lists allowed it to be NULL. If the user does not supply driver-specific parameters or initial values, then ddp[['parameters']] or ddp[['initial_values']] is NULL, causing a problem. To fix this, I changed these arguments to c(list(), ddp[['parameters']]), etc, which ensures that a (potentially empty) list is always passed.

This is in response to a comment from Justin: #16 (comment)

@eloch216 eloch216 merged commit dc381ba into develop Mar 11, 2026
8 checks passed
@eloch216 eloch216 deleted the remove-combine-lists branch March 11, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant