Skip to content

Commit 5bb210d

Browse files
committed
more docs cleanup
1 parent 7eb7e83 commit 5bb210d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/bigexample.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ import numpy as np
1313
userLabel = "guest@navability.io"
1414
robotLabel = "TestRobot"
1515
sessionLabel = "TestHex"
16-
fgclient = DFGClient(userLabel, robotLabel, sessionLabel)
16+
17+
# for private (non-guest) use, get a token after login at app.navability.io, Connect page.
18+
auth_token = ''
19+
20+
fgclient = DFGClient(userLabel, robotLabel, sessionLabel, auth_token=auth_token)
1721

1822
variables = listVariables(fgclient)
1923
# variables = await listVariablesAsync(fgclient)
2024

2125
# get one of the variables from the graph
22-
x1 = getVariable(fgclient, 'xl')
26+
x1 = getVariable(fgclient, 'x1')
2327
# xl1 = await getVariableAsync(fgclient, 'x1')
2428
print('The tags on this variable are', x1.tags)
2529

@@ -32,7 +36,7 @@ entry = getBlobEntry(fgclient, "x1", be_labels[0])
3236

3337
## fetch binary data blob from one of the blobstores
3438
store = NavAbilityBlobStore(fgclient.client, userLabel)
35-
blob = getBlob(store, entry.blobId)
39+
blob = getBlob(store, str(entry.blobId))
3640
# blob = await getBlobAsync(store, entry.id)
3741

3842
## which neighbors does this variable have

docs/blobs.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,11 @@ Adding `Blob` or `BlobEntry`s from the Python SDK are under construction and [ex
8383

8484
It is also possible to push data blobs:
8585
```python
86-
client = NavAbilityHttpsClient()
87-
blobId = await addBlob(fgclient.client, "testimage.png", imgblob)
86+
blobId = addBlob(fgclient, "testimage.png", imgblob)
8887
```
8988

9089
Remember to add at least one BlobEntry somewhere in your session so that you might find it again in the future, see `addBlobEntry` above.
9190

92-
:::{eval-rst}
93-
.. autofunction:: navability.entities.NavAbilityHttpsClient
94-
:::
9591

9692
:::{seealso}
9793
See [Tutorial 5 from ICRA 2022 for a more in-depth example of working with data blobs](sdkpynb:python/navability-sdk/icra-5-marineexample).

0 commit comments

Comments
 (0)