(data, not_found)
| 766 | |
| 767 | |
| 768 | def process_derived_datetime_xarray(data, not_found): |
| 769 | from pandas.api.types import is_datetime64_any_dtype as isdate |
| 770 | |
| 771 | extra_vars = [] |
| 772 | extra_coords = [] |
| 773 | for var in not_found: |
| 774 | if '.' in var: |
| 775 | derived_from = var.split('.')[0] |
| 776 | if isdate(data[derived_from]): |
| 777 | if derived_from in data.coords: |
| 778 | extra_coords.append(var) |
| 779 | else: |
| 780 | extra_vars.append(var) |
| 781 | not_found = [var for var in not_found if var not in extra_vars + extra_coords] |
| 782 | return not_found, extra_vars, extra_coords |
| 783 | |
| 784 | |
| 785 | def process_derived_datetime_pandas(data, not_found, indexes=None): |
no outgoing calls
no test coverage detected
searching dependent graphs…