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

Function outputDimensions

python/seldon/cli/attr_schema_utils.py:138–146  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

136 json.dump(rows, file)
137
138def outputDimensions(db):
139
140 with db:
141 cur = db.cursor()
142 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\'")
143 rows = cur.fetchall()
144 print "{h_dim_id:>8} {h_value_name}".format(h_dim_id="dim_id",h_value_name="value_name")
145 for row in rows:
146 print "{v_dim_id:>8} {v_value_name}".format(v_dim_id=row[0], v_value_name=row[1])
147
148def readTypes(types):
149 for theType in types:

Callers 2

create_schemaFunction · 0.85
show_dimensionsFunction · 0.85

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected