-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/export swc-Adds function to export SWC graph to a new SWC file #404
Feat/export swc-Adds function to export SWC graph to a new SWC file #404
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, a few cosmetic tweaks to complete it.
pyneuroml/swc/LoadSWC.py
Outdated
@@ -334,3 +334,22 @@ def load_swc(filename: str) -> SWCGraph: | |||
tree.add_node(node) | |||
|
|||
return tree | |||
|
|||
|
|||
def export_swc(graph: SWCGraph, filename: str) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add this to the SWCGraph
class as export_to_swc_file
. It's still SWC graph related functionality.
tests/swc/.coverage
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this file---it shouldn't be checked in. We should add .coverage
to .gitignore
I guess
self.output_file = "Case1_exported.swc" | ||
|
||
def test_load_export_compare(self): | ||
# Load the original file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a one line docstring :)
I have worked on the comments, please have a look if time permits. |
Sounds good. Ill take a look on Monday.
--
Thanks,
Ankur
(Sent from mobile device)
…On Fri, 12 Jul 2024, 14:26 Aditya Pandey, ***@***.***> wrote:
I have worked on the comments, please have a look if time permits.
—
Reply to this email directly, view it on GitHub
<#404 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAZBL5TA3C4AH2V33KZA4TZL7KPNAVCNFSM6AAAAABKUJJGYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRVGU4DQNRUGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Looks good. merging this in now. Do remember to pull to update your development and other branches. |
2.Adds tests to verify if generated file and input file are similar