Closed BSchilperoort closed 1 year ago
This PR adds the n kwarg to the add_interval method, allowing users to add multiple intervals at once, without a for loop. For example:
n
cal = Calendar(anchor="Jan") cal.add_intervals("precursor", "1W", n=10)
Instead of the old way:
cal = Calendar(anchor="Jan") for _ in range(10): cal.add_intervals("precursor", "1W")
add_interval
add_intervals
Closes #147
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Kudos, SonarCloud Quality Gate passed!
0 Bugs 0 Vulnerabilities 0 Security Hotspots 0 Code Smells
100.0% Coverage 0.0% Duplication
This PR adds the
n
kwarg to the add_interval method, allowing users to add multiple intervals at once, without a for loop. For example:Instead of the old way:
n
kwarg has been added and the docstring has been updated.add_interval
is renamed toadd_intervals
Closes #147