Skip to content

Commit

Permalink
improve logging in semantic map
Browse files Browse the repository at this point in the history
  • Loading branch information
ausgerechnet committed Nov 14, 2024
1 parent 63f82f8 commit 7531aac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cads/semantic_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def ccc_semmap(analyses, embeddings, per_am=200, method='tsne', blacklist_items=
coordinates['semantic_map_id'] = semantic_map.id
coordinates.to_sql('coordinates', con=db.engine, if_exists='append')
db.session.commit()
current_app.logger.debug('ccc_semmap :: ... done')
current_app.logger.debug('ccc_semmap :: ... exit')

return semantic_map

Expand Down Expand Up @@ -75,6 +75,8 @@ def ccc_semmap_update(semantic_map, items):
else:
current_app.logger.debug('ccc_semmap_update :: all requested items already have coordinates')

current_app.logger.debug('ccc_semmap_update :: exit')


def ccc_semmap_init(analysis, semantic_map_id=None, per_am=200, method='tsne'):
"""create a new semantic map for analysis or make sure there are coordinates for top items on an existing map.
Expand Down

0 comments on commit 7531aac

Please sign in to comment.