Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Switch assert to Error #73

Open
jennyfothergill opened this issue Sep 22, 2021 · 0 comments
Open

Switch assert to Error #73

jennyfothergill opened this issue Sep 22, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@jennyfothergill
Copy link
Member

jennyfothergill commented Sep 22, 2021

This assert

planckton/planckton/sim.py

Lines 112 to 115 in 9c5ce3b

assert len(kT) == len(tau) == len(n_steps), (
f"Must have the same number of values for kT (found {len(kT)}), "
f"tau (found {len(tau)}), and n_steps (found {len(n_steps)})."
)

does not give a useful error when used in planckton-flow. Instead it just fails with something like "Program failed during execution"

@jennyfothergill jennyfothergill added the good first issue Good for newcomers label Sep 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant