GeoEco.Datasets.Virtual.SeafloorGrid.Close
- SeafloorGrid.Close()
Closes any open files or connections associated with this object and releases any other resources allocated to access it.
It is OK to call
Close()after it has already been called. If nothing is open,Close()will quickly and silently do nothing.The
CollectibleObjectfinalizer__del__()always callsClose(), so that under normal circumstances,Close()will be called automatically by Python when theCollectibleObjectis about to be destroyed.CollectibleObjectalso usesatexitto register itself to callClose()on all still-allocated instances when Python exits. However, this procedure is subject to the various caveats documented byatexit, so under unusual circumstances it is possible thatClose()will not be called, and it will be up to lower-level libraries and the operating system itself to clean up open resources.