Skip to content
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

Fix helper #52

Merged
merged 3 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/reference/easyviewer.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: EasyViewer
title: easyviewer
---

::: src.nglui.easyviewer.ev_base.base
Expand All @@ -16,4 +16,4 @@ title: EasyViewer
::: src.nglui.easyviewer.ev_base.seunglab
options:
show_source: false
heading_level: 2
heading_level: 2
2 changes: 1 addition & 1 deletion docs/reference/parser.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: State Parser
title: parser
---

::: src.nglui.parser
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/segmentprops.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Segment Properties
title: segmentprops
---

!!! note
Expand Down
6 changes: 4 additions & 2 deletions docs/reference/statebuilder.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Statebuilder
title: statebuilder
---

::: src.nglui.statebuilder.statebuilder
Expand All @@ -17,7 +17,9 @@ title: Statebuilder
show_source: false
heading_level: 2

## `.helpers`

::: src.nglui.statebuilder.helpers
options:
show_source: false
heading_level: 2
heading_level: 3
23 changes: 10 additions & 13 deletions src/nglui/statebuilder/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -773,17 +771,16 @@ 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 package_state(
dataframes,
sb,
client,
shorten,
return_as,
ngl_url,
link_text,
target_site=target_site,
)


def from_client(
Expand Down
Loading