Skip to content

Commit 3ef4bf8

Browse files
committed
We need to allow for no categorical variables.
1 parent 3093ac6 commit 3ef4bf8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/backends/cgpm_backend.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,6 @@ def _json_ready_categories(self, bdb, population_id, generator_id, stattypes):
10031003
for k, v in core.bayesdb_colno_to_variable_names(bdb, population_id, generator_id).items()
10041004
if stattypes[v] == 'nominal'
10051005
}
1006-
assert len(name_map) > 0
10071006
# All categories for all categorical variables
10081007
raw_categories = sorted(bdb.sql_execute('''
10091008
SELECT colno, code, value FROM bayesdb_cgpm_category

0 commit comments

Comments
 (0)