MCPcopy Index your code
hub / github.com/LabPy/lantz / finalize

Method finalize

lantz/messagebased.py:329–332  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

327 self.resource = get_resource_manager().open_resource(self.resource_name, **self.resource_kwargs)
328
329 def finalize(self):
330 self.log_debug('Closing resource {}', self.resource_name)
331 self.resource.close()
332 super().finalize()
333
334 def query(self, command, *, send_args=(None, None), recv_args=(None, None)):
335 """Send query to the instrument and return the answer

Callers

nothing calls this directly

Calls 2

log_debugMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected