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

Feature/explorer v2 #343

Merged
merged 50 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2b7102e
New class: SearchContext (intended as replacement for DocumentCollect…
Jul 1, 2024
b88fdea
WIP.
Jul 2, 2024
43dc31b
WIP: tests/test_explorer.py now passing.
Jul 4, 2024
c873de5
WIP: more systematic approach to accessors (properties).
Jul 5, 2024
0d48ea3
WIP: refactor accessor (@property) setup for Document/Case/Child.
Jul 5, 2024
8c28a24
WIP: more refactoring.
Jul 5, 2024
58d9593
No need to copy the metadata in order to look up an attribute.
Jul 5, 2024
61e80a3
Use raw strings for regular expressions.
Jul 5, 2024
95fe866
Copied .timestamps and .intervals into class SearchContext, and corre…
Jul 5, 2024
5aca4f6
Set size to 0 when aggregating intervals (only interested in aggregat…
Jul 5, 2024
07dec52
(Re-)implemented "has" filter.
Jul 5, 2024
9cab87f
Corrected return values for filter generation.
Jul 5, 2024
a27ad40
Add forwarding filter() method to Explorer.
Jul 5, 2024
8d94643
Implement caching and prefetch for class SearchContext.
Aug 6, 2024
7b46983
Smarter implementation of __len__ and async version. Add maxhits para…
Aug 7, 2024
378f131
Simpler and faster test for test_get_cases.
Aug 7, 2024
5b4cc10
Speedup for get_*_by_uuid
Aug 8, 2024
99d7713
WIP: optimize searches.
Aug 8, 2024
96e49b0
Cleanup, and add optimizations to async operations.
Aug 8, 2024
5337f02
Remove (most of) the documentation for the constructor parameter keep…
Aug 8, 2024
b9378a9
Moved 'contexts' into Filters.
Aug 8, 2024
c660b83
Bug fix: need different tests for key inclusion in dicts and lists.
Aug 9, 2024
b01ac52
Added virtual objects for iteration and realization.
Aug 9, 2024
a557a71
Black formatting.
Aug 9, 2024
6dc95f2
Make Explorer, Case, Iteration and Realization inherit from SearchCon…
Aug 9, 2024
8cb2a07
Typo.
Aug 9, 2024
a8d9cac
Make Case.iterations and Case.iterations_async great again.
Aug 12, 2024
7a7f8f8
Generate documentation for SearchContext.filter from filter specifica…
Aug 12, 2024
b6ce486
Auto-generate bucket methods (.names, .columns, etc), rather than wri…
Aug 12, 2024
533b3c5
Use simple aggregation rather than composite for fast path bucket agg…
Aug 13, 2024
600fa68
Cleanup. Added back Case.overview.
Aug 13, 2024
3a8d7a4
Fix for filter for 'field'.
Aug 13, 2024
0051015
Expose timeout parameter to Explorer (sets timeout for wrapper).
Aug 19, 2024
f9b0720
Only do to table-aggregation stuff for table aggregations.
Aug 19, 2024
f3ff13d
Added new example notebook.
Aug 19, 2024
f7b16c6
Updated notebook, and cleared output cells.
Aug 19, 2024
09d6ad7
Refactored, and added new classes for collections of iterations and r…
Aug 19, 2024
583609c
Fixed a few typos/brainfarts.
Aug 21, 2024
5192ee8
Upgrades/corrections.
Aug 22, 2024
2f2cabd
A few fixes. Added min, max, etc methods for surface aggregation.
Aug 22, 2024
0e3a11d
Do not strip data.spec.columns from documents.
Sep 12, 2024
8bbe534
More robust method of finding a case with seismic data.
Sep 12, 2024
bf2e701
Only import xtgeo and openvds if (and when) actually needed.
Sep 12, 2024
752bb1a
Cleanup.
Sep 12, 2024
6d6a841
Correctly handle .cases for null context (explorer).
Sep 12, 2024
54643e5
Make access tests great again.
Sep 12, 2024
ebf7624
Make access tests great again, again.
Sep 12, 2024
c28714b
Allow for missing data.table_index.
Sep 13, 2024
f0837ae
Remove tests for AggregatedTable, which does not exist anymore.
Sep 13, 2024
2d310a1
Corrections/improvements based on PR feedback.
Sep 13, 2024
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
22 changes: 13 additions & 9 deletions examples/explorer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"outputs": [],
"source": [
"# Get case surfaces\n",
"surfs = case.surfaces\n",
"surfs = case.surfaces.filter(realization=True)\n",
"\n",
"# Get available iterations\n",
"print(\"Iterations:\", surfs.iterations)\n",
Expand Down Expand Up @@ -174,10 +174,8 @@
"metadata": {},
"outputs": [],
"source": [
"import openvds\n",
"\n",
"# Case containing seismic cubes\n",
"seismic_case = sumo.cases.filter(uuid=\"c616019d-d344-4094-b2ee-dd4d6d336217\")[0]\n",
"seismic_case = sumo.filter(has={\"term\": {\"class.keyword\": \"cube\"}})[0]\n",
"\n",
"cubes = seismic_case.cubes\n",
"\n",
Expand Down Expand Up @@ -235,7 +233,7 @@
"# Perform aggregation on SurfaceCollection\n",
"\n",
"regsurf = surfs.min() # .max(), .mean(), .std(), .p10(), .p90(), .p50()\n",
"regsurf.quickplot()"
"regsurf.to_regular_surface().quickplot()"
]
},
{
Expand Down Expand Up @@ -307,11 +305,18 @@
"time = TimeFilter(time_type=TimeType.INTERVAL, start=\"2018-01-01\", end=\"2022-01-01\", exact=True)\n",
"surfs = case.surfaces.filter(time=time)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -325,15 +330,14 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.9.6"
},
"orig_nbformat": 4,
"vscode": {
"interpreter": {
"hash": "886a3bf2c68989186a10fcef5692724f98e2557aca959586571e913a0aec80e7"
}
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
Loading