Update dataset cache to latest calendar. Override this method to define how to update dataset cache corresponding to users' own cache mechanism. Parameters ---------- cache_uri : str or Path the complete uri of dataset cache file (include dir path).
(self, cache_uri: Union[str, Path], freq: str = "day")
| 445 | ) |
| 446 | |
| 447 | def update(self, cache_uri: Union[str, Path], freq: str = "day"): |
| 448 | """Update dataset cache to latest calendar. |
| 449 | |
| 450 | Override this method to define how to update dataset cache corresponding to users' own cache mechanism. |
| 451 | |
| 452 | Parameters |
| 453 | ---------- |
| 454 | cache_uri : str or Path |
| 455 | the complete uri of dataset cache file (include dir path). |
| 456 | freq : str |
| 457 | |
| 458 | Returns |
| 459 | ------- |
| 460 | int |
| 461 | 0(successful update)/ 1(no need to update)/ 2(update failure) |
| 462 | """ |
| 463 | raise NotImplementedError("Implement this method if you want to make expression cache up to date") |
| 464 | |
| 465 | @staticmethod |
| 466 | def cache_to_origin_data(data, fields): |
no outgoing calls
no test coverage detected