Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaPandeyCN committed Aug 21, 2024
1 parent ad92502 commit 5bad25f
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions pyneuroml/swc/ExportNML.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@
logger.setLevel(logging.DEBUG)


ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
ch.setFormatter(formatter)
logger.addHandler(ch)
fh = logging.FileHandler("neuroml_conversion.log")
fh.setLevel(logging.DEBUG)
fh.setFormatter(formatter)
logger.addHandler(fh)


class NeuroMLWriter:
"""
A class to convert SWC graph data to NeuroML format.
Expand Down Expand Up @@ -350,7 +339,9 @@ def handle_soma(
)
self.segment_types[self.next_segment_id] = SWCNode.SOMA
self.add_segment_to_groups(self.next_segment_id, SWCNode.SOMA)
self.processed_nodes.add(current_point.id)

if current_point.id == this_point.id:
self.processed_nodes.add(current_point.id)

self.next_segment_id += 1

Expand Down

0 comments on commit 5bad25f

Please sign in to comment.