The START_PERIOD_RANGE_BY_MEMBERS parameter with a future date but in the same year as the current breaks the code.
vfigueiredo-cit opened this issue · 0 comments
vfigueiredo-cit commented
Expected Behavior
With the scenario: (this issue is opened 2021-10-01)
YEAR_FILTER = '' #empty string '' or 'YYYY'
START_PERIOD_RANGE_BY_MEMBERS = '2021-10-02' #empty string '' or 'YYYY-MM-DD'
FINAL_PERIOD_RANGE_BY_MEMBERS = '' #empty string '' or 'YYYY-MM-DD'
- The code should handle this case, as there is no data available in the CBN Trello starting in the future.
Actual Behavior
- The section
Graph and Table of parsers delivered by members
get an error:
IndexError: index 0 is out of bounds for axis 0 with size 0
Steps to Reproduce the Problem
- Stay on
main
branch - Run the jupyter notebook with the "Parameters" on this scenario:
YEAR_FILTER = '' #empty string '' or 'YYYY'
START_PERIOD_RANGE_BY_MEMBERS = '2021-10-02' #empty string '' or 'YYYY-MM-DD'
FINAL_PERIOD_RANGE_BY_MEMBERS = '' #empty string '' or 'YYYY-MM-DD'
Specifications
- Version: 1abec15
- Platform: Ubuntu 20.04.2 LTS