Closed jdossgollin closed 5 years ago
@jdossgollin thanks for the issue and nice example -- it looks like our documentation is indeed wrong here. If you're up for it, a pull request to fix it would be welcome!
Changing date_ranges=(sdate, edate)
to date_ranges=[(sdate, edate)]
should work. Aospy treats a tuple of dates as a single "date range." So much like listing a number of runs or variables to iterate over, one can list a number of date ranges to iterate over too, e.g. date_ranges=[(sdate1, edate1), (sdate2, edate2)]
. When specifying a single date range at the moment, one needs to enclose the tuple in a list.
@spencerkclark sounds good. This will be my first PR on someone else's project so apologies in advance if I make a mess of it đŸ˜„ .
No worries -- we're happy to help out if you hit any snags!
@spencerkclark which branch should I try to merge into? Thanks,
Good question -- we use the develop
branch as our working branch.
Thanks @jdossgollin for catching this and the other things you've brought to our attention. As @spencerkclark said, don't worry at all about being new. We're 100% happy (thrilled even) to get any question, bug reports, and PRs, from anybody.
When I pass a custom date range, I get an error
TypeError: 'datetime.datetime' object is not subscriptable
. It's coming fromcalc.py
:Here's an MWE:
and the full error