MCPcopy Index your code
hub / github.com/pydata/xarray / write_methods

Function write_methods

xarray/util/generate_aggregations.py:764–769  ·  view source on GitHub ↗
(filepath, generators, preamble)

Source from the content-addressed store, hash-verified

762
763
764def write_methods(filepath, generators, preamble):
765 with open(filepath, mode="w", encoding="utf-8") as f:
766 f.write(preamble)
767 for gen in generators:
768 for lines in gen.generate_methods():
769 f.writelines(line + "\n" for line in lines)
770
771
772if __name__ == "__main__":

Callers 1

Calls 1

generate_methodsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…