Skip to content

Commit

Permalink
fixed a minor issue with comparison operators not working with numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
wjbmattingly committed Dec 19, 2024
1 parent e092ac5 commit ca6bb86
Show file tree
Hide file tree
Showing 3 changed files with 295 additions and 92 deletions.
124 changes: 35 additions & 89 deletions docs/notebooks/01_getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -422,22 +422,19 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 14,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"107044"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
"name": "stdout",
"output_type": "stream",
"text": [
"107044\n"
]
}
],
"source": [
"pg.num_results"
"print(pg.num_results)"
]
},
{
Expand All @@ -449,22 +446,19 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 13,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'https://lux.collections.yale.edu/api/search/agent?q=%7B%22AND%22%3A%20%5B%7B%22name%22%3A%20%22John%22%7D%5D%7D'"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
"name": "stdout",
"output_type": "stream",
"text": [
"https://lux.collections.yale.edu/api/search/agent?q=%7B%22AND%22%3A%20%5B%7B%22name%22%3A%20%22John%22%7D%5D%7D\n"
]
}
],
"source": [
"pg.url"
"print(pg.url)"
]
},
{
Expand All @@ -476,22 +470,19 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'https://lux.collections.yale.edu/view/results/people?q=%7B%22AND%22%3A%20%5B%7B%22name%22%3A%20%22John%22%7D%5D%7D'"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
"name": "stdout",
"output_type": "stream",
"text": [
"https://lux.collections.yale.edu/view/results/people?q=%7B%22AND%22%3A%20%5B%7B%22name%22%3A%20%22John%22%7D%5D%7D\n"
]
}
],
"source": [
"pg.view_url"
"print(pg.view_url)"
]
},
{
Expand All @@ -503,72 +494,27 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 11,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'@context': 'https://linked.art/ns/v1/search.json',\n",
" 'id': 'https://lux.collections.yale.edu/api/search/agent?q=%7B%22AND%22%3A%5B%7B%22name%22%3A%22John%22%7D%5D%7D&page=1&pageLength=20',\n",
" 'type': 'OrderedCollectionPage',\n",
" 'partOf': [{'id': 'https://lux.collections.yale.edu/api/search-estimate/agent?q=%7B%22AND%22%3A%5B%7B%22name%22%3A%22John%22%7D%5D%7D',\n",
" 'type': 'OrderedCollection',\n",
" 'label': {'en': ['People & Groups']},\n",
" 'summary': {'en': ['Records representing individuals and organizations that match your search.']},\n",
" 'totalItems': 107044}],\n",
" 'orderedItems': [{'id': 'https://lux.collections.yale.edu/data/person/e7e1885c-666c-46ef-a44e-d9d65de1946e',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/81eff8bf-8b21-4070-8705-799693c8de56',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/f46087a4-9c6b-43f8-a6aa-a9b7ebd773b5',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/15baa1fc-f6a8-4204-a45c-70b01f8c95e8',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/8dd43025-0583-4597-93a3-460be970d68e',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/47a93f86-2483-4109-9f83-b9624dfc36e3',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/e7ce8ff7-2fad-4ae3-a21e-297482a76849',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/3c267f42-4792-4256-990a-abd92f24b63e',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/0e77a4ab-a2bf-464b-9cd4-5fa9007ab197',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/41ae356b-a58e-4b69-81b8-755acf6979dd',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/584ae665-c318-4a31-a514-ea3068e99be5',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/607068d3-0e95-4e7f-a1fd-d0e9333cb7d8',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/group/adc84bbb-3d98-4328-bd1b-bb7b532df313',\n",
" 'type': 'Group'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/d82c70e7-4ad6-420a-989d-cdec596220ec',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/e3cb13b0-7dad-4eec-b0f7-bad6c609b69b',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/a85b781b-0286-4cde-845a-d12a00e0d0c2',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/2cdfe011-9d18-4105-8b6e-22b75c6e5f39',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/fa4746d1-6186-4353-bb39-ed31b3b9266e',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/1699b6c5-3954-46b1-addf-fd0d933c91a9',\n",
" 'type': 'Person'},\n",
" {'id': 'https://lux.collections.yale.edu/data/person/9d8353c3-1923-428e-a814-0fb1a779ecec',\n",
" 'type': 'Person'}],\n",
" 'next': {'id': 'https://lux.collections.yale.edu/api/search/agent?q=%7B%22AND%22%3A%5B%7B%22name%22%3A%22John%22%7D%5D%7D&page=2&pageLength=20',\n",
" 'type': 'OrderedCollectionPage'}}"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
"name": "stdout",
"output_type": "stream",
"text": [
"{'@context': 'https://linked.art/ns/v1/search.json', 'id': 'https://lux.collections.yale.edu/api/search/agent?q=%7B%22AND%22%3A%5B%7B%22name%22%3A%22John%22%7D%5D%7D&page=1&pageLength=20', 'type': 'OrderedCollectionPage', 'partOf': [{'id': 'https://lux.collections.yale.edu/api/search-estimate/agent?q=%7B%22AND%22%3A%5B%7B%22name%22%3A%22John%22%7D%5D%7D', 'type': 'OrderedCollection', 'label': {'en': ['People & Groups']}, 'summary': {'en': ['Records representing individuals and organizations that match your search.']}, 'totalItems': 107044}], 'orderedItems': [{'id': 'https://lux.collections.yale.edu/data/person/e7e1885c-666c-46ef-a44e-d9d65de1946e', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/81eff8bf-8b21-4070-8705-799693c8de56', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/f46087a4-9c6b-43f8-a6aa-a9b7ebd773b5', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/15baa1fc-f6a8-4204-a45c-70b01f8c95e8', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/8dd43025-0583-4597-93a3-460be970d68e', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/47a93f86-2483-4109-9f83-b9624dfc36e3', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/e7ce8ff7-2fad-4ae3-a21e-297482a76849', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/3c267f42-4792-4256-990a-abd92f24b63e', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/0e77a4ab-a2bf-464b-9cd4-5fa9007ab197', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/41ae356b-a58e-4b69-81b8-755acf6979dd', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/584ae665-c318-4a31-a514-ea3068e99be5', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/607068d3-0e95-4e7f-a1fd-d0e9333cb7d8', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/group/adc84bbb-3d98-4328-bd1b-bb7b532df313', 'type': 'Group'}, {'id': 'https://lux.collections.yale.edu/data/person/d82c70e7-4ad6-420a-989d-cdec596220ec', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/e3cb13b0-7dad-4eec-b0f7-bad6c609b69b', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/a85b781b-0286-4cde-845a-d12a00e0d0c2', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/2cdfe011-9d18-4105-8b6e-22b75c6e5f39', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/fa4746d1-6186-4353-bb39-ed31b3b9266e', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/1699b6c5-3954-46b1-addf-fd0d933c91a9', 'type': 'Person'}, {'id': 'https://lux.collections.yale.edu/data/person/9d8353c3-1923-428e-a814-0fb1a779ecec', 'type': 'Person'}], 'next': {'id': 'https://lux.collections.yale.edu/api/search/agent?q=%7B%22AND%22%3A%5B%7B%22name%22%3A%22John%22%7D%5D%7D&page=2&pageLength=20', 'type': 'OrderedCollectionPage'}}\n"
]
}
],
"source": [
"pg.json"
"print(pg.json)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Loading

0 comments on commit ca6bb86

Please sign in to comment.