(self, variable_name: str, datastore: ScipyDataStore)
| 78 | dtype: np.dtype |
| 79 | |
| 80 | def __init__(self, variable_name: str, datastore: ScipyDataStore) -> None: |
| 81 | self.datastore = datastore |
| 82 | self.variable_name = variable_name |
| 83 | array = self.get_variable().data |
| 84 | self.shape = array.shape |
| 85 | self.dtype = np.dtype(array.dtype.kind + str(array.dtype.itemsize)) |
| 86 | |
| 87 | def get_variable(self, needs_lock: bool = True) -> scipy.io.netcdf_variable: |
| 88 | ds = self.datastore._manager.acquire(needs_lock) |
nothing calls this directly
no test coverage detected