From 60c853ed68b0ec9225e42c6b0712b0e9c7941c27 Mon Sep 17 00:00:00 2001 From: Casey Schneider-Mizell Date: Tue, 12 Nov 2024 15:20:21 -0800 Subject: [PATCH 1/3] restore make_neuron_neuroglancer_link behavior --- src/nglui/statebuilder/helpers.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/nglui/statebuilder/helpers.py b/src/nglui/statebuilder/helpers.py index 24b26e2..62397f1 100644 --- a/src/nglui/statebuilder/helpers.py +++ b/src/nglui/statebuilder/helpers.py @@ -773,17 +773,17 @@ def make_neuron_neuroglancer_link( dataframe_resolution_post=data_resolution_post, split_positions=True, ) - return sb, dataframes - # return package_state( - # dataframes, - # sb, - # client, - # shorten, - # return_as, - # ngl_url, - # link_text, - # target_site=target_site, - # ) + # return sb, dataframes + return package_state( + dataframes, + sb, + client, + shorten, + return_as, + ngl_url, + link_text, + target_site=target_site, + ) def from_client( From 3214a8c7efe4e89446d1fe6cb9bdd425039c5c57 Mon Sep 17 00:00:00 2001 From: Casey Schneider-Mizell Date: Tue, 12 Nov 2024 15:39:38 -0800 Subject: [PATCH 2/3] update docs to match namespaces --- docs/reference/easyviewer.md | 4 ++-- docs/reference/parser.md | 2 +- docs/reference/segmentprops.md | 2 +- docs/reference/statebuilder.md | 6 ++++-- src/nglui/statebuilder/helpers.py | 2 -- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/reference/easyviewer.md b/docs/reference/easyviewer.md index d5728fc..34e722b 100644 --- a/docs/reference/easyviewer.md +++ b/docs/reference/easyviewer.md @@ -1,5 +1,5 @@ --- -title: EasyViewer +title: easyviewer --- ::: src.nglui.easyviewer.ev_base.base @@ -16,4 +16,4 @@ title: EasyViewer ::: src.nglui.easyviewer.ev_base.seunglab options: show_source: false - heading_level: 2 \ No newline at end of file + heading_level: 2 diff --git a/docs/reference/parser.md b/docs/reference/parser.md index 81a99b4..ec33d06 100644 --- a/docs/reference/parser.md +++ b/docs/reference/parser.md @@ -1,5 +1,5 @@ --- -title: State Parser +title: parser --- ::: src.nglui.parser diff --git a/docs/reference/segmentprops.md b/docs/reference/segmentprops.md index fc56920..430350b 100644 --- a/docs/reference/segmentprops.md +++ b/docs/reference/segmentprops.md @@ -1,5 +1,5 @@ --- -title: Segment Properties +title: segmentprops --- !!! note diff --git a/docs/reference/statebuilder.md b/docs/reference/statebuilder.md index 1e5fcc3..3e07c23 100644 --- a/docs/reference/statebuilder.md +++ b/docs/reference/statebuilder.md @@ -1,5 +1,5 @@ --- -title: Statebuilder +title: statebuilder --- ::: src.nglui.statebuilder.statebuilder @@ -17,7 +17,9 @@ title: Statebuilder show_source: false heading_level: 2 +## `.helpers` + ::: src.nglui.statebuilder.helpers options: show_source: false - heading_level: 2 \ No newline at end of file + heading_level: 3 \ No newline at end of file diff --git a/src/nglui/statebuilder/helpers.py b/src/nglui/statebuilder/helpers.py index 62397f1..a14ff2f 100644 --- a/src/nglui/statebuilder/helpers.py +++ b/src/nglui/statebuilder/helpers.py @@ -442,8 +442,6 @@ def package_state( """Automate creating a state from a statebuilder and a dataframe, return it in the desired format, shortening if desired. - # Convert below to numpydoc - Parameters ---------- df : pandas.DataFrame From 1259d4c37e58907833965e88ef7455f5c9199290 Mon Sep 17 00:00:00 2001 From: Casey Schneider-Mizell Date: Tue, 12 Nov 2024 15:41:40 -0800 Subject: [PATCH 3/3] remove commented out line --- src/nglui/statebuilder/helpers.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/nglui/statebuilder/helpers.py b/src/nglui/statebuilder/helpers.py index a14ff2f..2f72606 100644 --- a/src/nglui/statebuilder/helpers.py +++ b/src/nglui/statebuilder/helpers.py @@ -771,7 +771,6 @@ def make_neuron_neuroglancer_link( dataframe_resolution_post=data_resolution_post, split_positions=True, ) - # return sb, dataframes return package_state( dataframes, sb,