More specification for behaviour of target_datetime
See original GitHub issueHi,
I was thinking about implementing target_datetime
in some of the parsers, and came up with the following questions. If you let me know what you prefer, I can update comments in example parser and README to match 👍
- What is expected behaviour if
target_datetime
doesn’t exactly match available data?- example: 18:45 is requested, but data is only available in hourly segments. Return closest data point (19:00) or return None? I see that ENTSOE parser has
closest_in_time_key
logic that would do the former - should that be the guideline? - example: 18:30 is requested, but data is only available in hourly segments. Round up or down, or return None when ambiguous?
- example: 18:45 is requested, but data is only available in hourly segments. Return closest data point (19:00) or return None? I see that ENTSOE parser has
- What is expected behaviour when the parser can get some historical data, but not necessarily all? Examples: there might be data for only 2018 and not 2017; or there is data for 2018-03-01 and 2018-03-03 but 2018-03-02 is missing.
- return empty dict, or empty list?
- return None?
- raise NotImplementedException?
- Is it worth implementing target_datetime if max time in the past is within 24 hours, or is it sufficient to return 24 hours’ worth of history when invoked without a target_datetime parameter?
- ENTSOE parser’s fetch_exchange always returns a list, even when returning one datapoint via
target_datetime
parameter. Is this required, or is it fine to return a list normally but a dict when called withtarget_datetime
?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
What Is a Target-Date Fund? Risk Tolerance and Example
A target-date fund is a fund offered by an investment company that seeks to grow assets over a specified period of time for...
Read more >Action, actor, context, target, time (AACTT): a framework for ...
We propose to expand the TACT framework to guide specification of behaviour in terms of not only Target, Action, Context and Time but...
Read more >Target Date Retirement Fund Names and Marketing - SEC.gov
Target date funds have become more prevalent in 401(k) plans as a result of the designation of these funds as a qualified default...
Read more >Save the Date: Target-Date Funds Explained | FINRA.org
You pick a fund with a target year that is closest to the year you anticipate retiring, say a "2050 Fund." The closer...
Read more >The effect of default target date funds on retirement savings ...
Defined contribution retirement plans increasingly use target date funds as the plan investment default with the intent of simplifying participant choices.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This looks fine now after #1237, I’ll close it. Thanks!
Okay, thanks!
To try to summarize:
target_datetime
, with guideline being the amount of data returned in one HTTP request by source APII think that makes sense - certainly it does for now.