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

Function outputDimensionsToFile

python/seldon/shell/attr_schema_utils.py:137–143  ·  view source on GitHub ↗
(file, db)

Source from the content-addressed store, hash-verified

135 exit(1)
136
137def outputDimensionsToFile(file, db):
138
139 with db:
140 cur = db.cursor()
141 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\'")
142 rows = cur.fetchall()
143 json.dump(rows, file)
144
145def readTypes(types):
146 for theType in types:

Callers 1

create_schemaFunction · 0.70

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected