Return True if the input file or sequence is a mapping type. Args: wrfin (:class:`netCDF4.Dataset`, :class:`Nio.NioFile`, or an \ iterable): WRF-ARW NetCDF data as a :class:`netCDF4.Dataset`, :class:`Nio.NioFile` or an iterable sequence of the aforem
(wrfin)
| 166 | |
| 167 | |
| 168 | def is_mapping(wrfin): |
| 169 | """Return True if the input file or sequence is a mapping type. |
| 170 | |
| 171 | Args: |
| 172 | |
| 173 | wrfin (:class:`netCDF4.Dataset`, :class:`Nio.NioFile`, or an \ |
| 174 | iterable): WRF-ARW NetCDF |
| 175 | data as a :class:`netCDF4.Dataset`, :class:`Nio.NioFile` |
| 176 | or an iterable sequence of the aforementioned types. |
| 177 | |
| 178 | Returns: |
| 179 | |
| 180 | :obj:`bool`: True if the input is a mapping type, False otherwise. |
| 181 | |
| 182 | """ |
| 183 | return isinstance(wrfin, Mapping) |
| 184 | |
| 185 | |
| 186 | def _generator_copy(gen): |
no outgoing calls
no test coverage detected