Christina Theodoris
commited on
Commit
·
39b4444
1
Parent(s):
9ee140a
add check to ensure emb_label is None for getting state embs dict
Browse files
geneformer/emb_extractor.py
CHANGED
|
@@ -719,6 +719,12 @@ class EmbExtractor:
|
|
| 719 |
)
|
| 720 |
raise
|
| 721 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 722 |
state_embs_dict = dict()
|
| 723 |
state_key = cell_states_to_model["state_key"]
|
| 724 |
for k, v in cell_states_to_model.items():
|
|
|
|
| 719 |
)
|
| 720 |
raise
|
| 721 |
|
| 722 |
+
if self.emb_label is not None:
|
| 723 |
+
logger.error(
|
| 724 |
+
"For extracting state embs, emb_label should be None since labels are based on state embs dict keys."
|
| 725 |
+
)
|
| 726 |
+
raise
|
| 727 |
+
|
| 728 |
state_embs_dict = dict()
|
| 729 |
state_key = cell_states_to_model["state_key"]
|
| 730 |
for k, v in cell_states_to_model.items():
|