(units: NPDatetimeUnitOptions)
| 151 | |
| 152 | |
| 153 | def _numpy_to_netcdf_timeunit(units: NPDatetimeUnitOptions) -> str: |
| 154 | return { |
| 155 | "ns": "nanoseconds", |
| 156 | "us": "microseconds", |
| 157 | "ms": "milliseconds", |
| 158 | "s": "seconds", |
| 159 | "m": "minutes", |
| 160 | "h": "hours", |
| 161 | "D": "days", |
| 162 | }[units] |
| 163 | |
| 164 | |
| 165 | def _numpy_dtype_to_netcdf_timeunit(dtype: np.dtype) -> str: |
no outgoing calls
searching dependent graphs…