pitopt 1.1.0__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.
- pitopt-1.1.0/CONTRIBUTING.md +48 -0
- pitopt-1.1.0/LICENSE +661 -0
- pitopt-1.1.0/MANIFEST.in +3 -0
- pitopt-1.1.0/NOTICE +19 -0
- pitopt-1.1.0/PKG-INFO +180 -0
- pitopt-1.1.0/README.md +143 -0
- pitopt-1.1.0/SECURITY.md +15 -0
- pitopt-1.1.0/THIRD_PARTY_NOTICES.md +52 -0
- pitopt-1.1.0/pitopt/__init__.py +15 -0
- pitopt-1.1.0/pitopt/__main__.py +7 -0
- pitopt-1.1.0/pitopt/cli.py +207 -0
- pitopt-1.1.0/pitopt/config.py +530 -0
- pitopt-1.1.0/pitopt/core/__init__.py +1 -0
- pitopt-1.1.0/pitopt/core/cancel.py +32 -0
- pitopt-1.1.0/pitopt/core/design.py +475 -0
- pitopt-1.1.0/pitopt/core/design_detail/__init__.py +5 -0
- pitopt-1.1.0/pitopt/core/design_detail/angles.py +100 -0
- pitopt-1.1.0/pitopt/core/design_detail/builder.py +230 -0
- pitopt-1.1.0/pitopt/core/design_detail/config.py +416 -0
- pitopt-1.1.0/pitopt/core/design_detail/footprint.py +199 -0
- pitopt-1.1.0/pitopt/core/design_detail/offset.py +114 -0
- pitopt-1.1.0/pitopt/core/design_detail/parameters.py +336 -0
- pitopt-1.1.0/pitopt/core/design_detail/ramp.py +533 -0
- pitopt-1.1.0/pitopt/core/design_detail/reconcile.py +210 -0
- pitopt-1.1.0/pitopt/core/design_detail/stack.py +245 -0
- pitopt-1.1.0/pitopt/core/design_detail/validate.py +198 -0
- pitopt-1.1.0/pitopt/core/economics.py +245 -0
- pitopt-1.1.0/pitopt/core/limits.py +136 -0
- pitopt-1.1.0/pitopt/core/pitsurface.py +108 -0
- pitopt-1.1.0/pitopt/core/planning.py +223 -0
- pitopt-1.1.0/pitopt/core/precedence.py +486 -0
- pitopt-1.1.0/pitopt/core/reblock.py +272 -0
- pitopt-1.1.0/pitopt/core/reserves.py +339 -0
- pitopt-1.1.0/pitopt/core/schedule.py +360 -0
- pitopt-1.1.0/pitopt/core/sensitivity.py +100 -0
- pitopt-1.1.0/pitopt/core/shells.py +100 -0
- pitopt-1.1.0/pitopt/core/solver.py +182 -0
- pitopt-1.1.0/pitopt/core/verify.py +310 -0
- pitopt-1.1.0/pitopt/io/__init__.py +3 -0
- pitopt-1.1.0/pitopt/io/blockmodel.py +210 -0
- pitopt-1.1.0/pitopt/io/console.py +75 -0
- pitopt-1.1.0/pitopt/io/datasets.py +204 -0
- pitopt-1.1.0/pitopt/io/datfile.py +93 -0
- pitopt-1.1.0/pitopt/io/design_export.py +360 -0
- pitopt-1.1.0/pitopt/io/dxf.py +259 -0
- pitopt-1.1.0/pitopt/io/excel.py +231 -0
- pitopt-1.1.0/pitopt/io/pdf.py +376 -0
- pitopt-1.1.0/pitopt/io/plot.py +66 -0
- pitopt-1.1.0/pitopt/io/results.py +594 -0
- pitopt-1.1.0/pitopt/io/viz.py +371 -0
- pitopt-1.1.0/pitopt/mcp_server.py +632 -0
- pitopt-1.1.0/pitopt/pipeline.py +1022 -0
- pitopt-1.1.0/pitopt/provenance.py +62 -0
- pitopt-1.1.0/pitopt/ui/__init__.py +3 -0
- pitopt-1.1.0/pitopt/ui/design_service.py +412 -0
- pitopt-1.1.0/pitopt/ui/mcp_controller.py +509 -0
- pitopt-1.1.0/pitopt/ui/onboard.py +403 -0
- pitopt-1.1.0/pitopt/ui/server.py +1145 -0
- pitopt-1.1.0/pitopt/ui/staging.py +49 -0
- pitopt-1.1.0/pitopt/ui/static/css/app.css +301 -0
- pitopt-1.1.0/pitopt/ui/static/css/chat.css +657 -0
- pitopt-1.1.0/pitopt/ui/static/css/design.css +62 -0
- pitopt-1.1.0/pitopt/ui/static/fonts/IBMPlexMono-400.woff2 +0 -0
- pitopt-1.1.0/pitopt/ui/static/fonts/IBMPlexMono-500.woff2 +0 -0
- pitopt-1.1.0/pitopt/ui/static/fonts/IBMPlexMono-600.woff2 +0 -0
- pitopt-1.1.0/pitopt/ui/static/fonts/IBMPlexSans-var.woff2 +0 -0
- pitopt-1.1.0/pitopt/ui/static/fonts/OFL.txt +93 -0
- pitopt-1.1.0/pitopt/ui/static/i18n/en.json +1229 -0
- pitopt-1.1.0/pitopt/ui/static/img/design.webp +0 -0
- pitopt-1.1.0/pitopt/ui/static/img/og-pitopt-2026-11.png +0 -0
- pitopt-1.1.0/pitopt/ui/static/img/pitbypit.webp +0 -0
- pitopt-1.1.0/pitopt/ui/static/img/pushback.webp +0 -0
- pitopt-1.1.0/pitopt/ui/static/img/summary.webp +0 -0
- pitopt-1.1.0/pitopt/ui/static/img/tutorial-marvin.webp +0 -0
- pitopt-1.1.0/pitopt/ui/static/index.html +24 -0
- pitopt-1.1.0/pitopt/ui/static/js/actions.js +4 -0
- pitopt-1.1.0/pitopt/ui/static/js/app.js +223 -0
- pitopt-1.1.0/pitopt/ui/static/js/charts.js +279 -0
- pitopt-1.1.0/pitopt/ui/static/js/chat-panel.js +1210 -0
- pitopt-1.1.0/pitopt/ui/static/js/commands.js +1025 -0
- pitopt-1.1.0/pitopt/ui/static/js/csp-boot.js +48 -0
- pitopt-1.1.0/pitopt/ui/static/js/design/core.js +194 -0
- pitopt-1.1.0/pitopt/ui/static/js/design/plan.js +105 -0
- pitopt-1.1.0/pitopt/ui/static/js/design/planview.js +49 -0
- pitopt-1.1.0/pitopt/ui/static/js/design/section.js +80 -0
- pitopt-1.1.0/pitopt/ui/static/js/design/three.js +45 -0
- pitopt-1.1.0/pitopt/ui/static/js/design/ui.js +175 -0
- pitopt-1.1.0/pitopt/ui/static/js/i18n.js +205 -0
- pitopt-1.1.0/pitopt/ui/static/js/manage.js +119 -0
- pitopt-1.1.0/pitopt/ui/static/js/modal.js +16 -0
- pitopt-1.1.0/pitopt/ui/static/js/run.js +81 -0
- pitopt-1.1.0/pitopt/ui/static/js/store.js +103 -0
- pitopt-1.1.0/pitopt/ui/static/js/tutorial-guide.js +140 -0
- pitopt-1.1.0/pitopt/ui/static/js/util.js +98 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/blocks.js +106 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/common.js +37 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/design_ekspor.js +69 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/design_generate.js +76 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/design_penampang.js +72 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/design_ramp.js +109 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/design_sektor.js +117 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/design_sumber.js +75 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/design_validasi.js +88 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/misc.js +128 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/params.js +189 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/pitbypit.js +65 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/plan.js +140 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/summary.js +94 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/upload.js +503 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/view3d.js +85 -0
- pitopt-1.1.0/pitopt/ui/static/js/views/workspace.js +103 -0
- pitopt-1.1.0/pitopt/ui/static/landing.html +487 -0
- pitopt-1.1.0/pitopt.egg-info/PKG-INFO +180 -0
- pitopt-1.1.0/pitopt.egg-info/SOURCES.txt +163 -0
- pitopt-1.1.0/pitopt.egg-info/dependency_links.txt +1 -0
- pitopt-1.1.0/pitopt.egg-info/entry_points.txt +3 -0
- pitopt-1.1.0/pitopt.egg-info/requires.txt +29 -0
- pitopt-1.1.0/pitopt.egg-info/top_level.txt +1 -0
- pitopt-1.1.0/pyproject.toml +60 -0
- pitopt-1.1.0/setup.cfg +4 -0
- pitopt-1.1.0/tests/test_ai_chat_panel.py +814 -0
- pitopt-1.1.0/tests/test_app_screens.py +671 -0
- pitopt-1.1.0/tests/test_cli.py +67 -0
- pitopt-1.1.0/tests/test_datfile_reblock.py +178 -0
- pitopt-1.1.0/tests/test_demo_gating.py +307 -0
- pitopt-1.1.0/tests/test_design_context.py +37 -0
- pitopt-1.1.0/tests/test_design_detail_acceptance.py +117 -0
- pitopt-1.1.0/tests/test_design_detail_geometry.py +782 -0
- pitopt-1.1.0/tests/test_design_detail_ramp.py +398 -0
- pitopt-1.1.0/tests/test_design_detail_validation.py +697 -0
- pitopt-1.1.0/tests/test_design_service.py +335 -0
- pitopt-1.1.0/tests/test_design_ui.py +429 -0
- pitopt-1.1.0/tests/test_desktop_app.py +177 -0
- pitopt-1.1.0/tests/test_desktop_local_mcp.py +177 -0
- pitopt-1.1.0/tests/test_dxf_topography.py +250 -0
- pitopt-1.1.0/tests/test_freshness.py +190 -0
- pitopt-1.1.0/tests/test_i18n.py +76 -0
- pitopt-1.1.0/tests/test_independent_algorithms.py +980 -0
- pitopt-1.1.0/tests/test_input_contract.py +230 -0
- pitopt-1.1.0/tests/test_install_e2e.py +312 -0
- pitopt-1.1.0/tests/test_job_context.py +49 -0
- pitopt-1.1.0/tests/test_launcher.py +123 -0
- pitopt-1.1.0/tests/test_layered_domain_pipeline.py +52 -0
- pitopt-1.1.0/tests/test_limits.py +40 -0
- pitopt-1.1.0/tests/test_mcp_server.py +298 -0
- pitopt-1.1.0/tests/test_module_boundaries.py +100 -0
- pitopt-1.1.0/tests/test_onboard.py +303 -0
- pitopt-1.1.0/tests/test_openpit_gold_dataset.py +259 -0
- pitopt-1.1.0/tests/test_outputs_consistency.py +357 -0
- pitopt-1.1.0/tests/test_pipeline_export_metadata.py +46 -0
- pitopt-1.1.0/tests/test_pipeline_precedence_bound.py +45 -0
- pitopt-1.1.0/tests/test_pipeline_smoke.py +312 -0
- pitopt-1.1.0/tests/test_precedence_reduction_safety.py +115 -0
- pitopt-1.1.0/tests/test_public_release.py +306 -0
- pitopt-1.1.0/tests/test_regression_gate.py +166 -0
- pitopt-1.1.0/tests/test_reserve_optimization_audit.py +460 -0
- pitopt-1.1.0/tests/test_results_consistency.py +273 -0
- pitopt-1.1.0/tests/test_results_json.py +27 -0
- pitopt-1.1.0/tests/test_run_cancel_atomic.py +119 -0
- pitopt-1.1.0/tests/test_run_discovery.py +13 -0
- pitopt-1.1.0/tests/test_schedule_capacity.py +78 -0
- pitopt-1.1.0/tests/test_selection_state.py +87 -0
- pitopt-1.1.0/tests/test_tutorial_replay.py +161 -0
- pitopt-1.1.0/tests/test_ui_server.py +179 -0
- pitopt-1.1.0/tests/test_upload_atomic.py +82 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for helping improve PitOpt. Bug reports, feature ideas, documentation
|
|
4
|
+
fixes and code are all welcome. Please follow the [Code of Conduct](CODE_OF_CONDUCT.md).
|
|
5
|
+
|
|
6
|
+
## Report a bug or suggest a feature
|
|
7
|
+
|
|
8
|
+
Open an [issue](https://github.com/ghoziankarami/pitopt/issues/new/choose).
|
|
9
|
+
For bugs, include the steps, the error output and your OS and Python version.
|
|
10
|
+
Reproduce with a bundled synthetic example where possible; never attach a
|
|
11
|
+
confidential block model.
|
|
12
|
+
|
|
13
|
+
## Development setup
|
|
14
|
+
|
|
15
|
+
You need Python 3.10 or newer and Git.
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
git clone https://github.com/ghoziankarami/pitopt.git
|
|
19
|
+
cd pitopt
|
|
20
|
+
python3 -m venv .venv
|
|
21
|
+
source .venv/bin/activate
|
|
22
|
+
pip install -e ".[dev]"
|
|
23
|
+
ruff check .
|
|
24
|
+
pytest
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
`make help` lists shortcuts (`make check` runs lint and tests).
|
|
28
|
+
|
|
29
|
+
## Pull requests
|
|
30
|
+
|
|
31
|
+
- Keep a pull request to one change, and describe what and why.
|
|
32
|
+
- Before changing engine behaviour, run the independent solver tests
|
|
33
|
+
(`make cross-check`) and the golden regression tests. Update expected
|
|
34
|
+
outputs only after explaining the numerical change.
|
|
35
|
+
- The UI is written in Indonesian with an English dictionary: add an entry to
|
|
36
|
+
`pitopt/ui/static/i18n/en.json` for new text (`tests/test_i18n.py` checks it).
|
|
37
|
+
- Add a line to `CHANGELOG.md` for user-visible changes.
|
|
38
|
+
|
|
39
|
+
## Data and licensing
|
|
40
|
+
|
|
41
|
+
Contribute synthetic fixtures only. Do not submit customer data, credentials,
|
|
42
|
+
private screenshots, recordings or copied code without a compatible license.
|
|
43
|
+
Include provenance and license notices for third-party assets. Contributions
|
|
44
|
+
are accepted under the project's [AGPL-3.0 licence](LICENSE). Sign off every commit (`git commit -s`) to certify the [Developer Certificate of Origin](https://developercertificate.org/); the maintainer may also offer the code under other licences.
|
|
45
|
+
|
|
46
|
+
Do not expose a normal local UI server to the Internet. Public showcases must
|
|
47
|
+
use demo mode, a separate synthetic-only root and a reverse proxy with limits
|
|
48
|
+
(see [SECURITY.md](SECURITY.md)).
|