Skip to content

Commit

Permalink
turn warning into logger.debug when alternate_morphologies is not pre…
Browse files Browse the repository at this point in the history
…sent (#78)
  • Loading branch information
anilbey authored Sep 13, 2023
1 parent e617823 commit 9ea6f94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bluecellulab/circuit/circuit_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import os
from pathlib import Path
from typing import Any, Optional, Protocol
import warnings
import logging

from bluecellulab import BLUEPY_AVAILABLE
Expand Down Expand Up @@ -666,7 +665,7 @@ def morph_filepath(self, cell_id: CellId) -> str:
try: # if asc defined in alternate morphology
return str(node_population.morph.get_filepath(cell_id.id, extension="asc"))
except BluepySnapError as e:
warnings.warn(str(e))
logger.debug(f"No asc morphology found for {cell_id}, trying swc.")
return str(node_population.morph.get_filepath(cell_id.id))

def emodel_path(self, cell_id: CellId) -> str:
Expand Down

0 comments on commit 9ea6f94

Please sign in to comment.