MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / outputDimensionsToFile

Function outputDimensionsToFile

scripts/add_attr_schema.py:128–134  ·  view source on GitHub ↗
(file, db)

Source from the content-addressed store, hash-verified

126 exit(1)
127
128def outputDimensionsToFile(file, db):
129
130 with db:
131 cur = db.cursor()
132 cur.execute("SELECT d.dim_id, e.value_name from DIMENSION d, ITEM_ATTR_ENUM e where d.attr_id = e.attr_id and d.value_id = e.value_id and e.value_name != \'article\'")
133 rows = cur.fetchall()
134 json.dump(rows, file)
135
136def readTypes(types):
137 for theType in types:

Callers 1

add_attr_schema.pyFile · 0.70

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected