Skip to content

Commit

Permalink
fix some linking
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpedigo committed Feb 16, 2024
1 parent 0736cd2 commit 3c1a144
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 48 deletions.
2 changes: 2 additions & 0 deletions caveclient/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
__version__ = "5.15.2"

from .frameworkclient import CAVEclient

__all__ = ["CAVEclient"]
12 changes: 7 additions & 5 deletions caveclient/annotationengine.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import json
from typing import Iterable, List, Mapping
from typing import Iterable, List, Mapping, Union

import numpy as np
import pandas as pd
Expand Down Expand Up @@ -30,7 +30,7 @@ def AnnotationClient(
----------
server_address : str
server_address to use to connect to (i.e. https://minniev1.microns-daf.com)
datastack_name : str
dataset_name : str
Name of the datastack.
auth_client : AuthClient or None, optional
Authentication client to use to connect to server. If None, do not use authentication.
Expand All @@ -48,6 +48,7 @@ def AnnotationClient(
Sets the max number of threads in the pool, by default None. If None, defaults to requests package default.
over_client:
client to overwrite configuration with
Returns
-------
ClientBaseWithDatastack
Expand Down Expand Up @@ -272,7 +273,7 @@ def create_table(
Name of the new table. Cannot be the same as an existing table
schema_name: str
Name of the schema for the new table.
descrption: str
description: str
Human readable description for what is in the table.
Should include information about who generated the table
What data it covers, and how it should be interpreted.
Expand Down Expand Up @@ -316,6 +317,7 @@ def create_table(
Text the user will see when querying this table. Can be used to warn users of flaws,
and uncertainty in the data, or to advertise citations that should be used with this table.
Defaults to None, no text. If you want to remove text, send empty string.
Returns
-------
json
Expand Down Expand Up @@ -713,7 +715,7 @@ def update_annotation_df(
def delete_annotation(
self,
table_name: str,
annotation_ids: (dict or List),
annotation_ids: Union[dict, List],
aligned_volume_name: str = None,
):
"""Delete one or more annotations in a table. Annotations that are
Expand All @@ -723,7 +725,7 @@ def delete_annotation(
----------
table_name : str
Name of the table where annotations will be added
data : dict or list,
annotation_ids : dict or list,
A list of (or a single) dict of schematized annotation data matching the target table.
each dict must contain an "id" field which is the ID of the annotation to update
aligned_volume_name : str or None, optional
Expand Down
2 changes: 1 addition & 1 deletion caveclient/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def get_user_information(self, user_ids):
Parameters
----------
user_id : list of int
user_ids : list of int
user_ids to look up
"""
endpoint_mapping = self._default_endpoint_mapping
Expand Down
2 changes: 1 addition & 1 deletion caveclient/datastack_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def reset_server_address_cache(datastack, filename=None):
Parameters
----------
datastacks : str or list of str, optional
datastack : str or list of str, optional
Datastack names to remove from the cache, by default None
filename : str, optional
Name of the cache file, by default None
Expand Down
58 changes: 29 additions & 29 deletions caveclient/frameworkclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ def __new__(
Then:
- `client.annotation` is an `AnnotationClient` (see [client.annotation](../../client_api/annotation/))
- `client.auth` is an `AuthClient` (see [client.auth](../../client_api/auth/))
- `client.chunkedgraph` is a `ChunkedGraphClient` (see [client.chunkedgraph](../../client_api/chunkedgraph/))
- `client.info` is an `InfoServiceClient` (see [client.info](../../client_api/info/))
- `client.l2cache` is an `L2CacheClient` (see [client.l2cache](../../client_api/l2cache/))
- `client.materialize` is a `MaterializationClient` (see [client.materialize](../../client_api/materialize/))
- `client.schema` is a `SchemaClient` (see [client.schema](../../client_api/schema/))
- `client.state` is a neuroglancer `JSONService` (see [client.state](../../client_api/state/))
- `client.annotation` is an `AnnotationClient` (see [client.annotation](../client_api/annotation.md))
- `client.auth` is an `AuthClient` (see [client.auth](../client_api/auth.md))
- `client.chunkedgraph` is a `ChunkedGraphClient` (see [client.chunkedgraph](../client_api/chunkedgraph.md))
- `client.info` is an `InfoServiceClient` (see [client.info](../client_api/info.md))
- `client.l2cache` is an `L2CacheClient` (see [client.l2cache](../client_api/l2cache.md))
- `client.materialize` is a `MaterializationClient` (see [client.materialize](../client_api/materialize.md))
- `client.schema` is a `SchemaClient` (see [client.schema](../client_api/schema.md))
- `client.state` is a neuroglancer `JSONService` (see [client.state](../client_api/state.md))
All subclients are loaded lazily and share the same datastack name, server address, and auth tokens where used.
Expand Down Expand Up @@ -139,10 +139,10 @@ def __init__(
Then:
- `client.auth` is an `AuthClient` (see [client.auth](../../client_api/auth/))
- `client.info` is an `InfoServiceClient` (see [client.info](../../client_api/info/))
- `client.schema` is a `SchemaClient` (see [client.schema](../../client_api/schema/))
- `client.state` is a neuroglancer `JSONService` (see [client.state](../../client_api/state/))
- `client.auth` is an `AuthClient` (see [client.auth](../client_api/auth.md))
- `client.info` is an `InfoServiceClient` (see [client.info](../client_api/info.md))
- `client.schema` is a `SchemaClient` (see [client.schema](../client_api/schema.md))
- `client.state` is a neuroglancer `JSONService` (see [client.state](../client_api/state.md))
All subclients are loaded lazily and share the same datastack name, server address, and auth tokens (where used).
Expand Down Expand Up @@ -223,7 +223,7 @@ def server_address(self):
@property
def auth(self):
"""
A client for the auth service. See [client.auth](../../client_api/auth/) for more information.
A client for the auth service. See [client.auth](../client_api/auth.md) for more information.
"""
if self._auth is None:
self._auth = AuthClient(**self._auth_config)
Expand All @@ -232,7 +232,7 @@ def auth(self):
@property
def info(self) -> InfoServiceClient:
"""
A client for the info service. See [client.info](../../client_api/info/) for more information.
A client for the info service. See [client.info](../client_api/info.md) for more information.
"""
if self._info is None:
self._info = InfoServiceClient(
Expand All @@ -250,7 +250,7 @@ def info(self) -> InfoServiceClient:
@property
def state(self):
"""
A client for the neuroglancer state service. See [client.state](../../client_api/state/)
A client for the neuroglancer state service. See [client.state](../client_api/state.md)
for more information.
"""
if self._state is None:
Expand All @@ -267,7 +267,7 @@ def state(self):
@property
def schema(self):
"""
A client for the EM Annotation Schemas service. See [client.schema](../../client_api/schema/)
A client for the EM Annotation Schemas service. See [client.schema](../client_api/schema.md)
for more information.
"""
if self._schema is None:
Expand Down Expand Up @@ -324,14 +324,14 @@ def __init__(
Then
- `client.annotation` is an `AnnotationClient` (see [client.annotation](../../client_api/annotation/))
- `client.auth` is an `AuthClient` (see [client.auth](../../client_api/auth/))
- `client.chunkedgraph` is a `ChunkedGraphClient` (see [client.chunkedgraph](../../client_api/chunkedgraph/))
- `client.info` is an `InfoServiceClient` (see [client.info](../../client_api/info/))
- `client.l2cache` is an `L2CacheClient` (see [client.l2cache](../../client_api/l2cache/))
- `client.materialize` is a `MaterializationClient` (see [client.materialize](../../client_api/materialize/))
- `client.schema` is a `SchemaClient` (see [client.schema](../../client_api/schema/))
- `client.state` is a neuroglancer `JSONService` (see [client.state](../../client_api/state/))
- `client.annotation` is an `AnnotationClient` (see [client.annotation](../client_api/annotation.md))
- `client.auth` is an `AuthClient` (see [client.auth](../client_api/auth.md))
- `client.chunkedgraph` is a `ChunkedGraphClient` (see [client.chunkedgraph](../client_api/chunkedgraph.md))
- `client.info` is an `InfoServiceClient` (see [client.info](../client_api/info.md))
- `client.l2cache` is an `L2CacheClient` (see [client.l2cache](../client_api/l2cache.md))
- `client.materialize` is a `MaterializationClient` (see [client.materialize](../client_api/materialize.md))
- `client.schema` is a `SchemaClient` (see [client.schema](../client_api/schema.md))
- `client.state` is a neuroglancer `JSONService` (see [client.state](../client_api/state.md))
All subclients are loaded lazily and share the same datastack name, server address, and auth tokens where used.
Expand Down Expand Up @@ -403,7 +403,7 @@ def datastack_name(self) -> str:
@property
def chunkedgraph(self):
"""
A client for the chunkedgraph service. See [client.chunkedgraph](../../client_api/chunkedgraph/)
A client for the chunkedgraph service. See [client.chunkedgraph](../client_api/chunkedgraph.md)
for more information.
"""
if self._chunkedgraph is None:
Expand All @@ -424,7 +424,7 @@ def chunkedgraph(self):
@property
def annotation(self):
"""
A client for the annotation service. See [client.annotation](../../client_api/annotation/)
A client for the annotation service. See [client.annotation](../client_api/annotation.md)
for more information.
"""
if self._annotation is None:
Expand All @@ -442,7 +442,7 @@ def annotation(self):
@property
def materialize(self):
"""
A client for the materialization service. See [client.materialize](../../client_api/materialize/)
A client for the materialization service. See [client.materialize](../client_api/materialize.md)
for more information.
"""
if self._materialize is None:
Expand All @@ -462,7 +462,7 @@ def materialize(self):
@property
def state(self):
"""
A client for the neuroglancer state service. See [client.state](../../client_api/state/)
A client for the neuroglancer state service. See [client.state](../client_api/state.md)
for more information.
"""
if self._state is None:
Expand All @@ -480,7 +480,7 @@ def state(self):
@property
def l2cache(self):
"""
A client for the L2 cache service. See [client.l2cache](../../client_api/l2cache/)
A client for the L2 cache service. See [client.l2cache](../client_api/l2cache.md)
for more information.
"""
if self._l2cache is None:
Expand Down
5 changes: 0 additions & 5 deletions caveclient/l2cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ def get_l2data(self, l2_ids, attributes=None):
def cache_metadata(self):
"""Retrieves the meta data for the cache
Parameters
----------
Returns
-------
dict
Expand All @@ -147,8 +144,6 @@ def attributes(self):

def table_mapping(self):
"""Retrieves table mappings for l2 cache.
Parameters
----------
Returns
-------
Expand Down
3 changes: 0 additions & 3 deletions caveclient/materializationengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1246,9 +1246,6 @@ def live_live_query(
filter_spatial_dict: dict of dicts, optional
A dictionary with tables as keys, values are dicts with column keys and values
of 2x3 list of bounds.
filter_regex_dict: dict of dicts, optional
A dictionary with tables as keys, values are dicts with column keys and values
of regex strings.
select_columns: dict of lists of str, optional
A dictionary with tables as keys, values are lists of columns to select.
offset:
Expand Down
2 changes: 1 addition & 1 deletion docs/client_api/annotation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ title: client.annotation
type(client.annotation)
```
Extended documentation for all versions of the annotation client can be found
[here](../extended_api/annotation.md).
[here](../extended_api/annotationengine.md).

::: caveclient.annotationengine.AnnotationClientV2
options:
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ nav:
- tutorials/schemas.md
- tutorials/state.md
- tutorials/materialization.md
- Client API:
- Client API: # these match the client property names
- client_api/index.md
- client_api/client.md
- client_api/annotation.md
Expand All @@ -28,7 +28,7 @@ nav:
- client_api/materialize.md
- client_api/schema.md
- client_api/state.md
- Extended API:
- Extended API: # these match the python file names
- extended_api/index.md
- extended_api/annotationengine.md
- extended_api/auth.md
Expand All @@ -40,7 +40,7 @@ nav:
- extended_api/infoservice.md
- extended_api/jsonservice.md
- extended_api/l2cache.md
- extended_api/materialization.md
- extended_api/materializationengine.md
- extended_api/session_config.md
- Glossary: glossary.md
- Contributing: contributing.md
Expand Down

0 comments on commit 3c1a144

Please sign in to comment.