env-able 2.2.0__tar.gz → 2.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {env_able-2.2.0 → env_able-2.3.1}/.gitignore +9 -1
- {env_able-2.2.0 → env_able-2.3.1}/CHANGELOG.md +77 -0
- {env_able-2.2.0 → env_able-2.3.1}/PKG-INFO +45 -1
- {env_able-2.2.0 → env_able-2.3.1}/README.md +43 -0
- {env_able-2.2.0 → env_able-2.3.1}/pyproject.toml +5 -2
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/__init__.py +1 -1
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/aix.py +74 -2
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/brandmark.py +32 -33
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/docs/atlas-guide.md +2524 -2290
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/docs/env-able-library.md +817 -740
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/index.html +3167 -428
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/landing.html +119 -55
- env_able-2.3.1/src/env_able/atlas/ltv_api.py +819 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/project.py +73 -13
- env_able-2.3.1/src/env_able/atlas/qaqc/ltv.css +118 -0
- env_able-2.3.1/src/env_able/atlas/qaqc/ltv.js +406 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/server.py +2028 -33
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/session.py +27 -8
- env_able-2.3.1/src/env_able/atlas/splash.html +165 -0
- env_able-2.3.1/src/env_able/atlas/vendor/MERRIWEATHER-LICENSE.txt +93 -0
- env_able-2.3.1/src/env_able/atlas/vendor/merriweather-latin-400-normal.woff +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/features.py +24 -6
- env_able-2.3.1/src/env_able/ltv.py +600 -0
- env_able-2.3.1/src/env_able/pwx.py +783 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/remote.py +115 -31
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/selection.py +16 -9
- env_able-2.2.0/src/env_able/atlas/splash.html +0 -160
- {env_able-2.2.0 → env_able-2.3.1}/LICENSE +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/_gdal_env.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/_gdal_utils.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/_pipeline.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/_result.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/aggregate.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/__init__.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/calc.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/claude_bridge.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/client.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/compliance.html +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/databricks.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/debug.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/desktop.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/docs/atlas-layout-view.md +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/docs/cartographic-judgment.md +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/edits.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/eirstyle.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/env_layers.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/naming.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/palette.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/templates/Summary A4 Landscape.pagx +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/templates/Summary A4 Portrait.pagx +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/templates/Title Bar A4 Landscape.pagx +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/templates/Title Bar A4 Portrait.pagx +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/vendor/HTML-TO-IMAGE-LICENSE.txt +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/vendor/MAPLIBRE-LICENSE.txt +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/vendor/PROTOMAPS-LICENSE.txt +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/vendor/ROBOTO-LICENSE.txt +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/vendor/html-to-image.js +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/vendor/maplibre-gl.css +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/vendor/maplibre-gl.js +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/vendor/pmtiles.js +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/vendor/protomaps-basemaps.js +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/vendor/roboto-latin-400-italic.woff2 +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/vendor/roboto-latin-400-normal.woff2 +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/vendor/roboto-latin-500-normal.woff2 +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/atlas/vendor/roboto-latin-700-normal.woff2 +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/classify.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/editing.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/expression.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/fields.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/housestyle.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/layout.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/morph.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/pull.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/stream.py +0 -0
- {env_able-2.2.0 → env_able-2.3.1}/src/env_able/vector.py +0 -0
|
@@ -57,6 +57,14 @@ archive/instant-analyst-configs/
|
|
|
57
57
|
# scratch-badass-gis: a visual-language scratch study. Its output was always ignored (below);
|
|
58
58
|
# archived whole, because the whole thing is now output rather than work.
|
|
59
59
|
archive/scratch-badass-gis/
|
|
60
|
+
# intern-handoffs: Yihan's three handoffs (calc + vertices, duplicate + summary stats, merge +
|
|
61
|
+
# Tools menu, plus the ESRI_TBX wishlist), all ported in 2.1.0 / 2.2.0. Moved from the
|
|
62
|
+
# incubator 2026-11-17; ignored as they were there, since the ported code is what ships.
|
|
63
|
+
archive/intern-handoffs/
|
|
64
|
+
# brain: the map-brain harvest of the team's ArcGIS Pro projects. Distilled into
|
|
65
|
+
# docs/style-guide/house_style.json in 2.2.0; env-able/dev/distil_brain.py still reads it to
|
|
66
|
+
# rebuild. The team's own project data, so ignored as it was in the incubator.
|
|
67
|
+
archive/brain/
|
|
60
68
|
|
|
61
69
|
# Base-data build inputs and outputs — 2.5 GB: a 2.4 GB file geodatabase of PRISM land grids,
|
|
62
70
|
# a 119 MB counties shapefile and the 144 MB GeoPackage built from them. There is no source in
|
|
@@ -172,4 +180,4 @@ tests/*
|
|
|
172
180
|
# ~175 MB of it. Only the README that says what each scenario is for is kept.
|
|
173
181
|
tests/maps/*
|
|
174
182
|
!tests/maps/README.md
|
|
175
|
-
/incubator
|
|
183
|
+
/incubator
|
|
@@ -1,5 +1,82 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.3.1] - 2026-11-19
|
|
4
|
+
### Changed
|
|
5
|
+
- **The PWx Dashboard acts on what it shows**: *DSUs over* a price, and each interval's count, select
|
|
6
|
+
those DSUs in the table; the table gains a **BE** column that sorts worst first; **What if** filters
|
|
7
|
+
by breakeven. The explanatory text is gone.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- **PWx placed sticks in feet as if they were metres**: a US-feet State Plane DSU file put a 660 ft grid
|
|
11
|
+
201 ft apart. Spacing, inset, lengths and well buffers now use the CRS's own unit.
|
|
12
|
+
- **A DSU with no polygon shifted every later DSU's sticks onto the row before it**; it now gets none,
|
|
13
|
+
and a point "DSU" fails the GeoPackage check.
|
|
14
|
+
- **The sheet check passed a blank interval and a spacing of 0 or -660**, which then placed nothing.
|
|
15
|
+
- **Well avoidance ignored an `envinterval` / `ENVInterval` column** from a folder well list, so every
|
|
16
|
+
well cut every interval.
|
|
17
|
+
- **Breakevens priced a missing cost rate as zero**: `[20%, missing]` averaged to 10%. Rates average
|
|
18
|
+
over the wells that report them, and an unreported one leaves the re-scaled breakeven.
|
|
19
|
+
- **PWx and LTv caches were keyed by play only**, so another Databricks workspace got the last one's
|
|
20
|
+
data. They are kept per connection (host and SQL path) now, re-pulled once.
|
|
21
|
+
- **A slower, older PWx check replaced the newer one** and the dashboard on screen got 409s.
|
|
22
|
+
- **A failed required lake pull showed Pulling forever**; it says why, with Retry.
|
|
23
|
+
- **LTv exported a 440 ft placement while the screen showed 660 ft** after overlapping requests; Open
|
|
24
|
+
and Export take the placement on screen.
|
|
25
|
+
- **LTv dropped a DSU's second polygon piece** under a repeated ID; pieces are kept, exact repeats dropped.
|
|
26
|
+
- **LTv read `2016-01-01T00:00:00Z` as no date** beside `2015-01-01` in one column, losing parents.
|
|
27
|
+
- **An LTv interval whose PWI lines were all empty** raised `IndexError`; **Kept** read 100% past the
|
|
28
|
+
last measured spacing; **Open in Map view** left the map hidden.
|
|
29
|
+
- **Planar tools measured US-feet layers as metres** (Generate Near Table, Calculate Geometry
|
|
30
|
+
Attributes, Select By Location radius): 100 ft read as 100 m. Feet layers are measured in UTM.
|
|
31
|
+
- **From URL** put `/items` inside an OGC query string, missed relative next links, and dropped an
|
|
32
|
+
ArcGIS URL's `where` and token, widening the request. Tokens are redacted from messages
|
|
33
|
+
(`remote.redact`).
|
|
34
|
+
- **Select By Location against an empty layer** returned a count of 0 beside real indices, and
|
|
35
|
+
inverted nothing.
|
|
36
|
+
- **Feature To Polygon raised `KeyError`** when a label point carried `POLY_ID`.
|
|
37
|
+
- **A failed `Session` start blocked every retry** in that process.
|
|
38
|
+
- **A failed project save could rewrite the last good save's data**: a layer cache was written in
|
|
39
|
+
place before a later one failed. Sidecars are staged and moved in only once the `.atlas` is ready.
|
|
40
|
+
- **SVG and AIX exports drew layers from another map view**, and the AIX ignored queries and drew
|
|
41
|
+
every class in one colour. Both draw the active view, filtered, and the AIX keeps its classes.
|
|
42
|
+
- **Switching map views left a layer's second label class and unplaced labels showing.**
|
|
43
|
+
- **Downloads failed on a non-Latin-1 name** (`東京`): style, AIX, Morph and PWx CSV now send
|
|
44
|
+
`filename*`.
|
|
45
|
+
- **Changing the self-hosted PMTiles address kept the old basemap.**
|
|
46
|
+
- **atlas-ml / atlas-mb**: two layers differing only mid-file were deduplicated to one; `Bakken.gpkg::Wells`
|
|
47
|
+
and `Permian.gpkg::Wells` were treated as versions of one layer; a refused `--apply` filter still
|
|
48
|
+
delivered an unfiltered map (now exit 1, no files); pages named *AOI East* and *AOI-East* wrote one
|
|
49
|
+
file; per-page defaults undid `--apply` styling; a missing PDF or SVG exited 0 (now exit 2,
|
|
50
|
+
`status: partial` and `missing` in `ATLAS_RESULT`).
|
|
51
|
+
- **`package_skill.py --force`** no longer turns off the stray-data check; a file that belongs is let
|
|
52
|
+
through with `--include=<path>`. **preflight `--launch`** exits non-zero when Atlas did not start.
|
|
53
|
+
- **pyarrow is part of `env-able[atlas]`**: the QA/QC lake caches are Parquet, and a base install
|
|
54
|
+
failed on its first pull.
|
|
55
|
+
|
|
56
|
+
## [2.3.0] - 2026-11-10
|
|
57
|
+
### Added
|
|
58
|
+
- **PWx** (QA/QC ▸ PWx, `env_able.pwx`): checks an Intel DSU allocation sheet against its DSU
|
|
59
|
+
GeoPackage before ingest (column names, blank IDs, whole-number spacing, interval characters,
|
|
60
|
+
duplicates, IDs missing from the GeoPackage), then draws one map per interval coloured by
|
|
61
|
+
spacing, over the play's subplays. Either file can be checked alone, or a play's PWA sheet and
|
|
62
|
+
DSUs loaded straight from Databricks (seventeen plays; Montney in about 3 s).
|
|
63
|
+
- **Phantom well sticks** in every DSU at its spacing, inside the play and its lateral limits, and
|
|
64
|
+
around the play's existing laterals from the lake: all of Montney, 52,809 sticks, in a few seconds
|
|
65
|
+
(the arcpy tool's loop took 42 s on Duvernay, a seventh the size; 1,870 of its 1,873 DSUs agree).
|
|
66
|
+
- **A Control panel** to re-space DSUs, one row at a time or by *What if*, in named scenarios
|
|
67
|
+
against Base. Only changed DSUs are placed again (under a second). **Save sheet** writes the
|
|
68
|
+
edited CSV; **Open in Map view** loads an interval as real layers.
|
|
69
|
+
- **Economics**: an EUR and a breakeven for every stick, PWA's own where PWA placed wells and PWA's
|
|
70
|
+
cash flow rebuilt elsewhere (a median 0.02% from PWA's breakeven on Montney, 0.4% on Midland),
|
|
71
|
+
with **Prism today** on the same ground beside it.
|
|
72
|
+
- **DSUs are matched to Prism's by shape**, not by name: unchanged (same ID, at least 95% of the
|
|
73
|
+
same ground), redrawn, or new.
|
|
74
|
+
- **Snapshot** beside PWx saves the screen as one HTML file in Downloads whose maps are live
|
|
75
|
+
MapLibre, to show someone who does not have Atlas (about 20 MB for Montney).
|
|
76
|
+
|
|
77
|
+
### Changed
|
|
78
|
+
- **QA/QC is its own workspace**: opening it hides the map and panes, and leaving it puts them back.
|
|
79
|
+
|
|
3
80
|
## [2.2.0] - 2026-11-03
|
|
4
81
|
### Added
|
|
5
82
|
- **Merge** (Tools ▸ Merge, `env.Merge`): stacks the features of two or more layers into one, nothing
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: env-able
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.1
|
|
4
4
|
Summary: AI-ready GIS toolkit for energy and subsurface workflows.
|
|
5
5
|
License: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -13,6 +13,7 @@ Requires-Dist: pyogrio
|
|
|
13
13
|
Requires-Dist: xlrd
|
|
14
14
|
Provides-Extra: atlas
|
|
15
15
|
Requires-Dist: fastapi; extra == 'atlas'
|
|
16
|
+
Requires-Dist: pyarrow; extra == 'atlas'
|
|
16
17
|
Requires-Dist: python-multipart; extra == 'atlas'
|
|
17
18
|
Requires-Dist: uvicorn; extra == 'atlas'
|
|
18
19
|
Provides-Extra: databricks
|
|
@@ -505,6 +506,49 @@ print(f"{rows:,} rows written")
|
|
|
505
506
|
---
|
|
506
507
|
|
|
507
508
|
## Changelog
|
|
509
|
+
### v2.3.1 — 2026-11-19
|
|
510
|
+
**Changed**
|
|
511
|
+
- **The PWx Dashboard acts on what it shows**: *DSUs over* a price, and each interval's count, select those DSUs in the table; the table gains a **BE** column that sorts worst first; **What if** filters by breakeven. The explanatory text is gone.
|
|
512
|
+
|
|
513
|
+
**Fixed**
|
|
514
|
+
- **PWx placed sticks in feet as if they were metres**: a US-feet State Plane DSU file put a 660 ft grid 201 ft apart. Spacing, inset, lengths and well buffers now use the CRS's own unit.
|
|
515
|
+
- **A DSU with no polygon shifted every later DSU's sticks onto the row before it**; it now gets none, and a point "DSU" fails the GeoPackage check.
|
|
516
|
+
- **The sheet check passed a blank interval and a spacing of 0 or -660**, which then placed nothing.
|
|
517
|
+
- **Well avoidance ignored an `envinterval` / `ENVInterval` column** from a folder well list, so every well cut every interval.
|
|
518
|
+
- **Breakevens priced a missing cost rate as zero**: `[20%, missing]` averaged to 10%. Rates average over the wells that report them, and an unreported one leaves the re-scaled breakeven.
|
|
519
|
+
- **PWx and LTv caches were keyed by play only**, so another Databricks workspace got the last one's data. They are kept per connection (host and SQL path) now, re-pulled once.
|
|
520
|
+
- **A slower, older PWx check replaced the newer one** and the dashboard on screen got 409s.
|
|
521
|
+
- **A failed required lake pull showed Pulling forever**; it says why, with Retry.
|
|
522
|
+
- **LTv exported a 440 ft placement while the screen showed 660 ft** after overlapping requests; Open and Export take the placement on screen.
|
|
523
|
+
- **LTv dropped a DSU's second polygon piece** under a repeated ID; pieces are kept, exact repeats dropped.
|
|
524
|
+
- **LTv read `2016-01-01T00:00:00Z` as no date** beside `2015-01-01` in one column, losing parents.
|
|
525
|
+
- **An LTv interval whose PWI lines were all empty** raised `IndexError`; **Kept** read 100% past the last measured spacing; **Open in Map view** left the map hidden.
|
|
526
|
+
- **Planar tools measured US-feet layers as metres** (Generate Near Table, Calculate Geometry Attributes, Select By Location radius): 100 ft read as 100 m. Feet layers are measured in UTM.
|
|
527
|
+
- **From URL** put `/items` inside an OGC query string, missed relative next links, and dropped an ArcGIS URL's `where` and token, widening the request. Tokens are redacted from messages (`remote.redact`).
|
|
528
|
+
- **Select By Location against an empty layer** returned a count of 0 beside real indices, and inverted nothing.
|
|
529
|
+
- **Feature To Polygon raised `KeyError`** when a label point carried `POLY_ID`.
|
|
530
|
+
- **A failed `Session` start blocked every retry** in that process.
|
|
531
|
+
- **A failed project save could rewrite the last good save's data**: a layer cache was written in place before a later one failed. Sidecars are staged and moved in only once the `.atlas` is ready.
|
|
532
|
+
- **SVG and AIX exports drew layers from another map view**, and the AIX ignored queries and drew every class in one colour. Both draw the active view, filtered, and the AIX keeps its classes.
|
|
533
|
+
- **Switching map views left a layer's second label class and unplaced labels showing.**
|
|
534
|
+
- **Downloads failed on a non-Latin-1 name** (`東京`): style, AIX, Morph and PWx CSV now send `filename*`.
|
|
535
|
+
- **Changing the self-hosted PMTiles address kept the old basemap.**
|
|
536
|
+
- **atlas-ml / atlas-mb**: two layers differing only mid-file were deduplicated to one; `Bakken.gpkg::Wells` and `Permian.gpkg::Wells` were treated as versions of one layer; a refused `--apply` filter still delivered an unfiltered map (now exit 1, no files); pages named *AOI East* and *AOI-East* wrote one file; per-page defaults undid `--apply` styling; a missing PDF or SVG exited 0 (now exit 2, `status: partial` and `missing` in `ATLAS_RESULT`).
|
|
537
|
+
- **`package_skill.py --force`** no longer turns off the stray-data check; a file that belongs is let through with `--include=<path>`. **preflight `--launch`** exits non-zero when Atlas did not start.
|
|
538
|
+
- **pyarrow is part of `env-able[atlas]`**: the QA/QC lake caches are Parquet, and a base install failed on its first pull.
|
|
539
|
+
|
|
540
|
+
### v2.3.0 — 2026-11-10
|
|
541
|
+
**Added**
|
|
542
|
+
- **PWx** (QA/QC ▸ PWx, `env_able.pwx`): checks an Intel DSU allocation sheet against its DSU GeoPackage before ingest (column names, blank IDs, whole-number spacing, interval characters, duplicates, IDs missing from the GeoPackage), then draws one map per interval coloured by spacing, over the play's subplays. Either file can be checked alone, or a play's PWA sheet and DSUs loaded straight from Databricks (seventeen plays; Montney in about 3 s).
|
|
543
|
+
- **Phantom well sticks** in every DSU at its spacing, inside the play and its lateral limits, and around the play's existing laterals from the lake: all of Montney, 52,809 sticks, in a few seconds (the arcpy tool's loop took 42 s on Duvernay, a seventh the size; 1,870 of its 1,873 DSUs agree).
|
|
544
|
+
- **A Control panel** to re-space DSUs, one row at a time or by *What if*, in named scenarios against Base. Only changed DSUs are placed again (under a second). **Save sheet** writes the edited CSV; **Open in Map view** loads an interval as real layers.
|
|
545
|
+
- **Economics**: an EUR and a breakeven for every stick, PWA's own where PWA placed wells and PWA's cash flow rebuilt elsewhere (a median 0.02% from PWA's breakeven on Montney, 0.4% on Midland), with **Prism today** on the same ground beside it.
|
|
546
|
+
- **DSUs are matched to Prism's by shape**, not by name: unchanged (same ID, at least 95% of the same ground), redrawn, or new.
|
|
547
|
+
- **Snapshot** beside PWx saves the screen as one HTML file in Downloads whose maps are live MapLibre, to show someone who does not have Atlas (about 20 MB for Montney).
|
|
548
|
+
|
|
549
|
+
**Changed**
|
|
550
|
+
- **QA/QC is its own workspace**: opening it hides the map and panes, and leaving it puts them back.
|
|
551
|
+
|
|
508
552
|
### v2.2.0 — 2026-11-03
|
|
509
553
|
**Added**
|
|
510
554
|
- **Merge** (Tools ▸ Merge, `env.Merge`): stacks the features of two or more layers into one, nothing cut. Fields matched by name, mixed geometry kinds refused, another CRS reprojected to the first; `add_source` adds Pro's `MERGE_SRC`.
|
|
@@ -479,6 +479,49 @@ print(f"{rows:,} rows written")
|
|
|
479
479
|
---
|
|
480
480
|
|
|
481
481
|
## Changelog
|
|
482
|
+
### v2.3.1 — 2026-11-19
|
|
483
|
+
**Changed**
|
|
484
|
+
- **The PWx Dashboard acts on what it shows**: *DSUs over* a price, and each interval's count, select those DSUs in the table; the table gains a **BE** column that sorts worst first; **What if** filters by breakeven. The explanatory text is gone.
|
|
485
|
+
|
|
486
|
+
**Fixed**
|
|
487
|
+
- **PWx placed sticks in feet as if they were metres**: a US-feet State Plane DSU file put a 660 ft grid 201 ft apart. Spacing, inset, lengths and well buffers now use the CRS's own unit.
|
|
488
|
+
- **A DSU with no polygon shifted every later DSU's sticks onto the row before it**; it now gets none, and a point "DSU" fails the GeoPackage check.
|
|
489
|
+
- **The sheet check passed a blank interval and a spacing of 0 or -660**, which then placed nothing.
|
|
490
|
+
- **Well avoidance ignored an `envinterval` / `ENVInterval` column** from a folder well list, so every well cut every interval.
|
|
491
|
+
- **Breakevens priced a missing cost rate as zero**: `[20%, missing]` averaged to 10%. Rates average over the wells that report them, and an unreported one leaves the re-scaled breakeven.
|
|
492
|
+
- **PWx and LTv caches were keyed by play only**, so another Databricks workspace got the last one's data. They are kept per connection (host and SQL path) now, re-pulled once.
|
|
493
|
+
- **A slower, older PWx check replaced the newer one** and the dashboard on screen got 409s.
|
|
494
|
+
- **A failed required lake pull showed Pulling forever**; it says why, with Retry.
|
|
495
|
+
- **LTv exported a 440 ft placement while the screen showed 660 ft** after overlapping requests; Open and Export take the placement on screen.
|
|
496
|
+
- **LTv dropped a DSU's second polygon piece** under a repeated ID; pieces are kept, exact repeats dropped.
|
|
497
|
+
- **LTv read `2016-01-01T00:00:00Z` as no date** beside `2015-01-01` in one column, losing parents.
|
|
498
|
+
- **An LTv interval whose PWI lines were all empty** raised `IndexError`; **Kept** read 100% past the last measured spacing; **Open in Map view** left the map hidden.
|
|
499
|
+
- **Planar tools measured US-feet layers as metres** (Generate Near Table, Calculate Geometry Attributes, Select By Location radius): 100 ft read as 100 m. Feet layers are measured in UTM.
|
|
500
|
+
- **From URL** put `/items` inside an OGC query string, missed relative next links, and dropped an ArcGIS URL's `where` and token, widening the request. Tokens are redacted from messages (`remote.redact`).
|
|
501
|
+
- **Select By Location against an empty layer** returned a count of 0 beside real indices, and inverted nothing.
|
|
502
|
+
- **Feature To Polygon raised `KeyError`** when a label point carried `POLY_ID`.
|
|
503
|
+
- **A failed `Session` start blocked every retry** in that process.
|
|
504
|
+
- **A failed project save could rewrite the last good save's data**: a layer cache was written in place before a later one failed. Sidecars are staged and moved in only once the `.atlas` is ready.
|
|
505
|
+
- **SVG and AIX exports drew layers from another map view**, and the AIX ignored queries and drew every class in one colour. Both draw the active view, filtered, and the AIX keeps its classes.
|
|
506
|
+
- **Switching map views left a layer's second label class and unplaced labels showing.**
|
|
507
|
+
- **Downloads failed on a non-Latin-1 name** (`東京`): style, AIX, Morph and PWx CSV now send `filename*`.
|
|
508
|
+
- **Changing the self-hosted PMTiles address kept the old basemap.**
|
|
509
|
+
- **atlas-ml / atlas-mb**: two layers differing only mid-file were deduplicated to one; `Bakken.gpkg::Wells` and `Permian.gpkg::Wells` were treated as versions of one layer; a refused `--apply` filter still delivered an unfiltered map (now exit 1, no files); pages named *AOI East* and *AOI-East* wrote one file; per-page defaults undid `--apply` styling; a missing PDF or SVG exited 0 (now exit 2, `status: partial` and `missing` in `ATLAS_RESULT`).
|
|
510
|
+
- **`package_skill.py --force`** no longer turns off the stray-data check; a file that belongs is let through with `--include=<path>`. **preflight `--launch`** exits non-zero when Atlas did not start.
|
|
511
|
+
- **pyarrow is part of `env-able[atlas]`**: the QA/QC lake caches are Parquet, and a base install failed on its first pull.
|
|
512
|
+
|
|
513
|
+
### v2.3.0 — 2026-11-10
|
|
514
|
+
**Added**
|
|
515
|
+
- **PWx** (QA/QC ▸ PWx, `env_able.pwx`): checks an Intel DSU allocation sheet against its DSU GeoPackage before ingest (column names, blank IDs, whole-number spacing, interval characters, duplicates, IDs missing from the GeoPackage), then draws one map per interval coloured by spacing, over the play's subplays. Either file can be checked alone, or a play's PWA sheet and DSUs loaded straight from Databricks (seventeen plays; Montney in about 3 s).
|
|
516
|
+
- **Phantom well sticks** in every DSU at its spacing, inside the play and its lateral limits, and around the play's existing laterals from the lake: all of Montney, 52,809 sticks, in a few seconds (the arcpy tool's loop took 42 s on Duvernay, a seventh the size; 1,870 of its 1,873 DSUs agree).
|
|
517
|
+
- **A Control panel** to re-space DSUs, one row at a time or by *What if*, in named scenarios against Base. Only changed DSUs are placed again (under a second). **Save sheet** writes the edited CSV; **Open in Map view** loads an interval as real layers.
|
|
518
|
+
- **Economics**: an EUR and a breakeven for every stick, PWA's own where PWA placed wells and PWA's cash flow rebuilt elsewhere (a median 0.02% from PWA's breakeven on Montney, 0.4% on Midland), with **Prism today** on the same ground beside it.
|
|
519
|
+
- **DSUs are matched to Prism's by shape**, not by name: unchanged (same ID, at least 95% of the same ground), redrawn, or new.
|
|
520
|
+
- **Snapshot** beside PWx saves the screen as one HTML file in Downloads whose maps are live MapLibre, to show someone who does not have Atlas (about 20 MB for Montney).
|
|
521
|
+
|
|
522
|
+
**Changed**
|
|
523
|
+
- **QA/QC is its own workspace**: opening it hides the map and panes, and leaving it puts them back.
|
|
524
|
+
|
|
482
525
|
### v2.2.0 — 2026-11-03
|
|
483
526
|
**Added**
|
|
484
527
|
- **Merge** (Tools ▸ Merge, `env.Merge`): stacks the features of two or more layers into one, nothing cut. Fields matched by name, mixed geometry kinds refused, another CRS reprojected to the first; `add_source` adds Pro's `MERGE_SRC`.
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "env-able"
|
|
7
|
-
version = "2.
|
|
7
|
+
version = "2.3.1"
|
|
8
8
|
description = "AI-ready GIS toolkit for energy and subsurface workflows."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
@@ -28,7 +28,10 @@ dependencies = [
|
|
|
28
28
|
# Python >= 3.10. It stays so that `env-able[databricks]` in anyone's requirements file
|
|
29
29
|
# keeps working, and so 3.8/3.9 users have a name to ask for.
|
|
30
30
|
databricks = ["databricks-sql-connector"]
|
|
31
|
-
|
|
31
|
+
# pyarrow is the Parquet engine: the QA/QC (PWx, LTv) lake caches and GeoParquet go through
|
|
32
|
+
# pandas/geopandas Parquet I/O, and pandas installs no engine of its own, so without it the
|
|
33
|
+
# dashboard opens and fails on its first lake pull.
|
|
34
|
+
atlas = ["fastapi", "uvicorn", "python-multipart", "pyarrow"]
|
|
32
35
|
fast = ["duckdb", "requests"] # DuckDB streaming sink + REST EXTERNAL_LINKS transport
|
|
33
36
|
fiona = ["fiona"] # optional legacy I/O engine (pyogrio is the default)
|
|
34
37
|
|
|
@@ -301,7 +301,56 @@ def _is_none(col) -> bool:
|
|
|
301
301
|
return str(col or '').strip().lower() in ('', 'none')
|
|
302
302
|
|
|
303
303
|
|
|
304
|
-
|
|
304
|
+
#: Symbology modes whose paint varies per feature. A single-symbol layer keeps the one-paint path,
|
|
305
|
+
#: so its output is byte-identical to what earlier releases wrote.
|
|
306
|
+
_CLASSED_MODES = ('unique', 'graduated', 'proportional')
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
def _classed_ops(layer, style, to_px, mark, pt_to_px):
|
|
310
|
+
"""
|
|
311
|
+
A classed layer's drawing operators: features grouped by the paint `style(feature)` gives
|
|
312
|
+
them, one `q ... Q` block and one renderer-class marker per group, in first-seen order.
|
|
313
|
+
|
|
314
|
+
`style` returns the SVG's per-feature dict (fill, stroke, line, poly_w, line_w). Widths are
|
|
315
|
+
points on the page, scaled to canvas pixels as the single-symbol path scales `size`.
|
|
316
|
+
"""
|
|
317
|
+
groups = {}
|
|
318
|
+
for feat in ((layer.get('geojson') or {}).get('features') or ()):
|
|
319
|
+
geom = feat.get('geometry')
|
|
320
|
+
if not geom:
|
|
321
|
+
continue
|
|
322
|
+
kind = _geom_kind({'features': [feat]})
|
|
323
|
+
st = style(feat) or {}
|
|
324
|
+
if kind == 'polygon':
|
|
325
|
+
key = (kind, st.get('fill'), st.get('stroke'), st.get('poly_w'))
|
|
326
|
+
elif kind == 'line':
|
|
327
|
+
key = (kind, None, st.get('line'), st.get('line_w'))
|
|
328
|
+
else: # a point is a filled mark, as the SVG dot is
|
|
329
|
+
key = (kind, st.get('fill') or st.get('stroke'), None, None)
|
|
330
|
+
groups.setdefault(key, []).append(geom)
|
|
331
|
+
ops = []
|
|
332
|
+
for k, ((kind, fill, stroke, width), geoms) in enumerate(groups.items()):
|
|
333
|
+
has_fill = not _is_none(fill)
|
|
334
|
+
has_line = stroke is not None and not _is_none(stroke)
|
|
335
|
+
ops.append('q')
|
|
336
|
+
if has_fill:
|
|
337
|
+
ops.append('/CS_0 cs')
|
|
338
|
+
ops.append('%s %s %s scn' % tuple(_num(v) for v in _rgb(fill)))
|
|
339
|
+
if has_line:
|
|
340
|
+
ops.append('/CS_0 CS')
|
|
341
|
+
ops.append('%s %s %s SCN' % tuple(_num(v) for v in _rgb(stroke)))
|
|
342
|
+
ops.append('%s w' % _num(float(width or 1.0) * pt_to_px))
|
|
343
|
+
ops.append(mark('#m4a_begin#4#%d##' % k))
|
|
344
|
+
ops.append(mark('#m4a_begin#6#0#%s#' % kind))
|
|
345
|
+
for g in geoms:
|
|
346
|
+
ops += _geom_ops(g, to_px, has_fill, has_line)
|
|
347
|
+
ops.append(mark('#m4a_end#'))
|
|
348
|
+
ops.append(mark('#m4a_end#'))
|
|
349
|
+
ops.append('Q')
|
|
350
|
+
return ops
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
def build(layers, bounds_lonlat, map_name='Map', page_pt=None, title='', style_for=None):
|
|
305
354
|
"""
|
|
306
355
|
Build an `.aix` from Atlas layers.
|
|
307
356
|
|
|
@@ -311,6 +360,10 @@ def build(layers, bounds_lonlat, map_name='Map', page_pt=None, title=''):
|
|
|
311
360
|
which is the map's own view rather than the data's extent, because what a designer asked for is
|
|
312
361
|
the map they were looking at.
|
|
313
362
|
|
|
363
|
+
`style_for(layer)` returns a `feature -> paint` function -- the server passes `_svg_style`,
|
|
364
|
+
so a classed layer (unique, graduated, proportional) keeps its per-feature colours exactly as
|
|
365
|
+
the SVG draws them. Omitted, every layer is one paint, as before.
|
|
366
|
+
|
|
314
367
|
Returns the file's bytes.
|
|
315
368
|
"""
|
|
316
369
|
west, south, east, north = [float(v) for v in bounds_lonlat]
|
|
@@ -420,6 +473,17 @@ def build(layers, bounds_lonlat, map_name='Map', page_pt=None, title=''):
|
|
|
420
473
|
# A layer's own transparency, as its own ExtGState rather than the shared alpha ones,
|
|
421
474
|
# because those are only ever 0 or 1.
|
|
422
475
|
s.append('/GS_op_%d gs' % i)
|
|
476
|
+
mode = ((l.get('symbology') or {}).get('mode')) or 'single'
|
|
477
|
+
if style_for is not None and mode in _CLASSED_MODES:
|
|
478
|
+
# A classed layer drew in ONE colour (SUITE-035): the paint was set once per layer
|
|
479
|
+
# from its base colour. Now each feature takes the SVG's own paint (`style_for` is
|
|
480
|
+
# server._svg_style), grouped so each class is one paint block inside the layer's
|
|
481
|
+
# OCG -- the layer stays one Illustrator layer, its classes stay distinct colours.
|
|
482
|
+
s += _classed_ops(l, style_for(l), to_px, mark, cw / page_w)
|
|
483
|
+
s.append('Q')
|
|
484
|
+
s.append('EMC')
|
|
485
|
+
s.append(mark('#m4a_end#'))
|
|
486
|
+
continue
|
|
423
487
|
if has_fill:
|
|
424
488
|
r, g, b = _rgb(fill_col)
|
|
425
489
|
s.append('/CS_0 cs')
|
|
@@ -484,8 +548,16 @@ def build(layers, bounds_lonlat, map_name='Map', page_pt=None, title=''):
|
|
|
484
548
|
xmp = _xmp(title or map_name, json.dumps(geo, separators=(',', ':')))
|
|
485
549
|
meta = pdf.add_stream(xmp.encode('utf-8'), extra='/Type /Metadata/Subtype /XML',
|
|
486
550
|
compress=False)
|
|
551
|
+
# A title Latin-1 cannot hold (a CJK map name) goes as UTF-16 like every other name here;
|
|
552
|
+
# encoding it raw raised and the export was refused (SUITE-029). Latin-1 titles are unchanged.
|
|
553
|
+
_t = title or map_name
|
|
554
|
+
try:
|
|
555
|
+
_t.encode('latin-1')
|
|
556
|
+
_t = _pdf_text(_t)
|
|
557
|
+
except UnicodeEncodeError:
|
|
558
|
+
_t = _utf16_pdf(_t)
|
|
487
559
|
info = pdf.add(('<</Title (%s)/Creator (Esri ArcGISPro 3.6.0.59527)>>'
|
|
488
|
-
%
|
|
560
|
+
% _t).encode('latin-1'))
|
|
489
561
|
|
|
490
562
|
# ── Page ────────────────────────────────────────────────────────────────────────────────
|
|
491
563
|
contents = pdf.add_stream(('/GS_init gs\n/Group_%d Do\n' % form).encode(), compress=False)
|
|
@@ -29,18 +29,27 @@ from pathlib import Path
|
|
|
29
29
|
|
|
30
30
|
#: The mark, in the SVG's own coordinate space. Kept as the viewBox rather than normalised so it
|
|
31
31
|
#: can be compared to index.html character for character.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
#:
|
|
35
|
-
#:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
32
|
+
#:
|
|
33
|
+
#: Since 2026-11-17 the mark is LAYERS: an A built from the map's own layers, the left leg, the
|
|
34
|
+
#: right leg and the crossbar, which is how the startup animation composes it (splash.html drops
|
|
35
|
+
#: them in as an exploded stack and slams them together). The left leg is the ink, the right leg
|
|
36
|
+
#: the brand's secondary neutral, so you can still tell there were two layers, and the crossbar
|
|
37
|
+
#: is the one accent.
|
|
38
|
+
VIEWBOX = (100, 100)
|
|
39
|
+
|
|
40
|
+
#: The three layers, as polygons. These are the coordinates the favicon, the ribbon, the start
|
|
41
|
+
#: page and the splash all draw; docs/verify.py and tests/test_brandmark.py hold them together.
|
|
42
|
+
LEFT = ((43, 10), (50, 10), (50, 28), (30, 90), (10, 90))
|
|
43
|
+
RIGHT = ((50, 10), (57, 10), (90, 90), (70, 90), (50, 28))
|
|
44
|
+
BAR = ((40.32, 58), (59.68, 58), (62.9, 68), (37.1, 68))
|
|
45
|
+
|
|
46
|
+
#: The icon sits on a square Carbon tile. The old mark carried a dark keyline so it could sit on a
|
|
47
|
+
#: light title bar and a dark one; a two-tone A cannot, so the tile does that job -- and a square
|
|
48
|
+
#: is the 2026 brand's own shape. In the application the mark sits on the theme with no tile.
|
|
49
|
+
TILE_FILL = "#0B0C0E" # Carbon
|
|
50
|
+
LEFT_FILL = "#F4F2ED" # Paper
|
|
51
|
+
RIGHT_FILL = "#8A8F96" # Concrete: the dark theme's secondary, 6.0:1 on Carbon
|
|
52
|
+
BAR_FILL = "#56BC2F" # the dark accent
|
|
44
53
|
|
|
45
54
|
#: Sizes Windows actually asks for. 16 for the title bar and the taskbar's small mode, 32 for the
|
|
46
55
|
#: taskbar, 48 and 256 for Alt-Tab and the shell's large views.
|
|
@@ -57,32 +66,23 @@ def _hex(c: str):
|
|
|
57
66
|
|
|
58
67
|
|
|
59
68
|
def render_png(size: int = 256) -> bytes:
|
|
60
|
-
"""The mark as a square RGBA PNG."""
|
|
69
|
+
"""The mark as a square RGBA PNG: the Carbon tile, then the three layers."""
|
|
61
70
|
from PIL import Image, ImageDraw
|
|
62
71
|
|
|
63
72
|
n = size * _SS
|
|
64
73
|
img = Image.new("RGBA", (n, n), (0, 0, 0, 0))
|
|
65
74
|
d = ImageDraw.Draw(img)
|
|
66
|
-
|
|
67
|
-
# Fit the 32x26 viewBox into a square with a little breathing room, centred. Centred rather
|
|
68
|
-
# than top-aligned because a taskbar icon is read as a glyph, not as a page.
|
|
69
75
|
vw, vh = VIEWBOX
|
|
70
|
-
|
|
71
|
-
scale = min(n * (1 - 2 * pad) / vw, n * (1 - 2 * pad) / vh)
|
|
72
|
-
ox = (n - vw * scale) / 2.0
|
|
73
|
-
oy = (n - vh * scale) / 2.0
|
|
76
|
+
scale = n / vw
|
|
74
77
|
|
|
75
78
|
def pts(poly):
|
|
76
|
-
return [(
|
|
79
|
+
return [(x * scale, y * scale) for x, y in poly]
|
|
77
80
|
|
|
78
|
-
# The
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
d.polygon(pts(OUTER), fill=_hex(OUTER_FILL) + (255,),
|
|
84
|
-
outline=_hex(OUTER_STROKE) + (255,), width=max(1, int(round(stroke))))
|
|
85
|
-
d.polygon(pts(INNER), fill=_hex(INNER_FILL) + (255,))
|
|
81
|
+
# The tile fills the icon edge to edge. Square corners: the brand has no radius anywhere.
|
|
82
|
+
d.rectangle([0, 0, n - 1, n - 1], fill=_hex(TILE_FILL) + (255,))
|
|
83
|
+
d.polygon(pts(LEFT), fill=_hex(LEFT_FILL) + (255,))
|
|
84
|
+
d.polygon(pts(RIGHT), fill=_hex(RIGHT_FILL) + (255,))
|
|
85
|
+
d.polygon(pts(BAR), fill=_hex(BAR_FILL) + (255,))
|
|
86
86
|
|
|
87
87
|
img = img.resize((size, size), Image.LANCZOS)
|
|
88
88
|
import io
|
|
@@ -106,8 +106,8 @@ def ico_path() -> str | None:
|
|
|
106
106
|
# rather than being masked by the one cached from last time. Four hex digits is plenty
|
|
107
107
|
# to tell one edit from the next; this is a cache key, not a signature.
|
|
108
108
|
import hashlib
|
|
109
|
-
key = hashlib.sha1(repr((VIEWBOX,
|
|
110
|
-
|
|
109
|
+
key = hashlib.sha1(repr((VIEWBOX, LEFT, RIGHT, BAR, TILE_FILL, LEFT_FILL, RIGHT_FILL,
|
|
110
|
+
BAR_FILL, ICO_SIZES)).encode()).hexdigest()[:4]
|
|
111
111
|
out = Path(base) / "env-able" / ("atlas-%s.ico" % key)
|
|
112
112
|
if out.is_file() and out.stat().st_size > 0:
|
|
113
113
|
return str(out)
|
|
@@ -117,8 +117,7 @@ def ico_path() -> str | None:
|
|
|
117
117
|
|
|
118
118
|
out.parent.mkdir(parents=True, exist_ok=True)
|
|
119
119
|
big = Image.open(io.BytesIO(render_png(max(ICO_SIZES))))
|
|
120
|
-
# One .ico carrying every size, so Windows picks rather than scaling a single bitmap
|
|
121
|
-
# a 256px mark squeezed to 16 loses the keyline that makes it legible.
|
|
120
|
+
# One .ico carrying every size, so Windows picks rather than scaling a single bitmap.
|
|
122
121
|
big.save(out, format="ICO", sizes=[(s, s) for s in ICO_SIZES])
|
|
123
122
|
return str(out)
|
|
124
123
|
except Exception as e: # noqa: BLE001
|