formamech 0.3.0__py3-none-any.whl
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.
- formamech/__init__.py +53 -0
- formamech/__main__.py +22 -0
- formamech/_boundary_picker_assets/index.css +2 -0
- formamech/_boundary_picker_assets/index.js +65756 -0
- formamech/_compat.py +65 -0
- formamech/_viewer_3d_assets/index.css +2 -0
- formamech/_viewer_3d_assets/index.js +20010 -0
- formamech/api.py +142 -0
- formamech/cli.py +21 -0
- formamech/pyproject.toml +10 -0
- formamech/verify_cli.py +156 -0
- formamech-0.3.0.dist-info/METADATA +523 -0
- formamech-0.3.0.dist-info/RECORD +437 -0
- formamech-0.3.0.dist-info/WHEEL +4 -0
- formamech-0.3.0.dist-info/entry_points.txt +17 -0
- formamech-0.3.0.dist-info/licenses/LICENSE +21 -0
- piginot/__init__.py +3 -0
- piginot/_build_identity.json +440 -0
- piginot/_job_evidence.py +70 -0
- piginot/active/__init__.py +174 -0
- piginot/active/acquisition.py +612 -0
- piginot/active/campaign.py +239 -0
- piginot/active/feedback.py +149 -0
- piginot/active/multifidelity.py +137 -0
- piginot/active/test_planner.py +561 -0
- piginot/benchmarks/__init__.py +65 -0
- piginot/benchmarks/external_data.py +491 -0
- piginot/benchmarks/formabench.py +650 -0
- piginot/benchmarks/industry_suite.py +351 -0
- piginot/benchmarks/scaling_3d.py +420 -0
- piginot/benchmarks/suite_3d.py +362 -0
- piginot/bounds/__init__.py +140 -0
- piginot/bounds/cad_calibration.py +503 -0
- piginot/bounds/confirmation.py +145 -0
- piginot/bounds/conformal.py +127 -0
- piginot/bounds/conformal_3d.py +581 -0
- piginot/bounds/gate.py +154 -0
- piginot/bounds/multigranular.py +472 -0
- piginot/bounds/picp.py +853 -0
- piginot/bounds/record.py +190 -0
- piginot/bundle/__init__.py +62 -0
- piginot/bundle/build.py +102 -0
- piginot/bundle/inference.py +836 -0
- piginot/bundle/limitations.py +16 -0
- piginot/bundle/manifest.py +289 -0
- piginot/bundle/problem.py +332 -0
- piginot/bundle/serving.py +380 -0
- piginot/bundle/specs.py +644 -0
- piginot/cad/__init__.py +74 -0
- piginot/cad/_errors.py +9 -0
- piginot/cad/adaptation.py +473 -0
- piginot/cad/adapter.py +207 -0
- piginot/cad/brep_synthesis.py +585 -0
- piginot/cad/cases.py +81 -0
- piginot/cad/cli.py +450 -0
- piginot/cad/configuration.py +295 -0
- piginot/cad/connectors.py +496 -0
- piginot/cad/dxf.py +304 -0
- piginot/cad/electronics_templates_3d.py +391 -0
- piginot/cad/hierarchy.py +723 -0
- piginot/cad/importing.py +315 -0
- piginot/cad/importing_3d.py +728 -0
- piginot/cad/kernel_protocol.py +176 -0
- piginot/cad/mesh_controls.py +328 -0
- piginot/cad/mesh_policy.py +239 -0
- piginot/cad/parametric.py +1163 -0
- piginot/cad/parametric_3d.py +687 -0
- piginot/cad/parametric_adapter.py +1672 -0
- piginot/cad/project.py +399 -0
- piginot/cad/refinement.py +90 -0
- piginot/cad/resource.py +236 -0
- piginot/cad/settings.py +263 -0
- piginot/cad/subprocess_gmsh.py +457 -0
- piginot/certify/__init__.py +236 -0
- piginot/certify/adjoint.py +502 -0
- piginot/certify/adjoint_3d.py +577 -0
- piginot/certify/admissibility.py +260 -0
- piginot/certify/ball_quadrature.py +270 -0
- piginot/certify/cad_trust.py +156 -0
- piginot/certify/certificate.py +54 -0
- piginot/certify/estimator.py +211 -0
- piginot/certify/guards.py +97 -0
- piginot/certify/hypercircle.py +875 -0
- piginot/certify/receipt.py +389 -0
- piginot/certify/regime_guards.py +448 -0
- piginot/certify/trust_report.py +423 -0
- piginot/cli.py +2945 -0
- piginot/compiler/__init__.py +5 -0
- piginot/compiler/_validation.py +111 -0
- piginot/compiler/adapters.py +186 -0
- piginot/compiler/boundary_objective.py +427 -0
- piginot/compiler/boundary_pilot.py +402 -0
- piginot/compiler/boundary_pilot_inputs.py +265 -0
- piginot/compiler/cli.py +95 -0
- piginot/compiler/config.py +370 -0
- piginot/compiler/config_types.py +316 -0
- piginot/compiler/constrained_boundary.py +41 -0
- piginot/compiler/energy_training.py +465 -0
- piginot/compiler/execution.py +417 -0
- piginot/compiler/execution_numerics.py +260 -0
- piginot/compiler/execution_records.py +147 -0
- piginot/compiler/execution_runtime.py +132 -0
- piginot/compiler/exporting.py +370 -0
- piginot/compiler/planning.py +280 -0
- piginot/compiler/provenance.py +263 -0
- piginot/compiler/public_source.py +80 -0
- piginot/compiler/records.py +121 -0
- piginot/compiler/reference_convergence.py +441 -0
- piginot/compiler/reference_jobs.py +404 -0
- piginot/compiler/reference_metrics.py +217 -0
- piginot/contracts/__init__.py +87 -0
- piginot/contracts/canonical.py +128 -0
- piginot/contracts/energy_formula.py +582 -0
- piginot/contracts/errors.py +41 -0
- piginot/contracts/expressions.py +177 -0
- piginot/contracts/hashing.py +24 -0
- piginot/contracts/problem_spec.py +1522 -0
- piginot/contracts/profile.py +107 -0
- piginot/contracts/specs.py +507 -0
- piginot/contracts/state_machine.py +443 -0
- piginot/contracts/stateful.py +502 -0
- piginot/contracts/units.py +182 -0
- piginot/datasets/__init__.py +143 -0
- piginot/datasets/collocation.py +692 -0
- piginot/datasets/collocation_models.py +531 -0
- piginot/datasets/collocation_sampling.py +219 -0
- piginot/datasets/extraction.py +386 -0
- piginot/datasets/gate.py +502 -0
- piginot/datasets/normalization.py +506 -0
- piginot/datasets/projection.py +699 -0
- piginot/datasets/request_plan.py +353 -0
- piginot/datasets/snapshots.py +773 -0
- piginot/datasets/units.py +14 -0
- piginot/doe/__init__.py +211 -0
- piginot/doe/_design_sampling.py +647 -0
- piginot/doe/allocation.py +527 -0
- piginot/doe/checkpoint.py +492 -0
- piginot/doe/commitment.py +256 -0
- piginot/doe/coverage.py +239 -0
- piginot/doe/design.py +617 -0
- piginot/doe/envelope.py +215 -0
- piginot/doe/gate.py +373 -0
- piginot/doe/leakage.py +187 -0
- piginot/doe/preregistration.py +852 -0
- piginot/doe/provenance.py +576 -0
- piginot/doe/publication.py +360 -0
- piginot/doe/replacement.py +394 -0
- piginot/doe/roles.py +341 -0
- piginot/doe/secret_material.py +131 -0
- piginot/evaluation/__init__.py +23 -0
- piginot/evaluation/budget_records.py +143 -0
- piginot/evaluation/burned.py +122 -0
- piginot/export/__init__.py +53 -0
- piginot/export/fmu_export.py +637 -0
- piginot/export/onnx_export.py +406 -0
- piginot/export/onnx_export_3d.py +261 -0
- piginot/export/vtu_export.py +325 -0
- piginot/fem/__init__.py +168 -0
- piginot/fem/_similitude.py +56 -0
- piginot/fem/assembly.py +162 -0
- piginot/fem/backend.py +666 -0
- piginot/fem/backend_3d.py +1681 -0
- piginot/fem/binding.py +531 -0
- piginot/fem/body_forces.py +51 -0
- piginot/fem/buckling_3d.py +791 -0
- piginot/fem/contact.py +168 -0
- piginot/fem/contact_3d.py +564 -0
- piginot/fem/diff_contact_3d.py +860 -0
- piginot/fem/discretization_crosscheck.py +77 -0
- piginot/fem/dynamics_3d.py +394 -0
- piginot/fem/electro_thermal_3d.py +971 -0
- piginot/fem/error_estimation.py +331 -0
- piginot/fem/external_solvers.py +668 -0
- piginot/fem/field_providers.py +71 -0
- piginot/fem/follower.py +200 -0
- piginot/fem/follower_3d.py +763 -0
- piginot/fem/gpu_assembly_3d.py +675 -0
- piginot/fem/ipc_contact_3d.py +1273 -0
- piginot/fem/linear_solvers.py +1003 -0
- piginot/fem/linearization.py +217 -0
- piginot/fem/manufactured.py +377 -0
- piginot/fem/manufactured_providers.py +102 -0
- piginot/fem/mms_convergence.py +101 -0
- piginot/fem/mms_estimators.py +285 -0
- piginot/fem/mms_runner.py +265 -0
- piginot/fem/modal_3d.py +267 -0
- piginot/fem/models.py +213 -0
- piginot/fem/nonlinear_dynamics_3d.py +408 -0
- piginot/fem/protocol.py +147 -0
- piginot/fem/registry.py +97 -0
- piginot/fem/regularity.py +101 -0
- piginot/fem/s8_gate.py +533 -0
- piginot/fem/s8_physical.py +317 -0
- piginot/fem/seeded_defects.py +389 -0
- piginot/fem/shells_beams_3d.py +757 -0
- piginot/fem/tendon_3d.py +792 -0
- piginot/fem/thermo_mechanical_3d.py +562 -0
- piginot/fem/torch_backend.py +1416 -0
- piginot/fem/torch_sparse_solver.py +1092 -0
- piginot/fem/verification_checks.py +428 -0
- piginot/fem/verification_meshes.py +286 -0
- piginot/fem/verification_norms.py +364 -0
- piginot/fem/visco_hysteresis_3d.py +729 -0
- piginot/geometry/__init__.py +73 -0
- piginot/geometry/assembly_3d.py +313 -0
- piginot/geometry/canonicalize.py +498 -0
- piginot/geometry/errors.py +81 -0
- piginot/geometry/family.py +38 -0
- piginot/geometry/gmsh.py +556 -0
- piginot/geometry/ingest.py +133 -0
- piginot/geometry/mesh3d.py +396 -0
- piginot/geometry/models.py +75 -0
- piginot/geometry/queries.py +171 -0
- piginot/geometry/topology.py +84 -0
- piginot/git_environment.py +35 -0
- piginot/governance/__init__.py +39 -0
- piginot/governance/hitl_signoff.py +372 -0
- piginot/governance/plm_dossier.py +391 -0
- piginot/harness/__init__.py +86 -0
- piginot/harness/adapters.py +277 -0
- piginot/harness/catalog.py +4152 -0
- piginot/harness/circuit_breaker.py +681 -0
- piginot/harness/contracts.py +351 -0
- piginot/harness/registry.py +166 -0
- piginot/harness/session.py +767 -0
- piginot/ingest/__init__.py +81 -0
- piginot/ingest/contracts.py +246 -0
- piginot/ingest/readers.py +434 -0
- piginot/ingest/robotics_streams.py +207 -0
- piginot/ingest/screening.py +306 -0
- piginot/ingest/simops_fabric.py +905 -0
- piginot/ingest/simops_schema.py +219 -0
- piginot/lifting/__init__.py +21 -0
- piginot/lifting/_checks.py +49 -0
- piginot/lifting/adf.py +293 -0
- piginot/lifting/adf_3d.py +337 -0
- piginot/lifting/base.py +47 -0
- piginot/lifting/quarter.py +62 -0
- piginot/lifting/verify.py +75 -0
- piginot/materials/__init__.py +76 -0
- piginot/materials/admission.py +644 -0
- piginot/materials/artifact.py +279 -0
- piginot/materials/fem_admission.py +325 -0
- piginot/materials/hyperelastic.py +429 -0
- piginot/materials/neural_polyconvex.py +797 -0
- piginot/materials/registry.py +126 -0
- piginot/materials/values.py +82 -0
- piginot/mcp_agent_workflows.py +272 -0
- piginot/mcp_server.py +1828 -0
- piginot/morphing/__init__.py +88 -0
- piginot/morphing/blended_notch.py +385 -0
- piginot/morphing/circular_transition.py +546 -0
- piginot/morphing/fixed.py +82 -0
- piginot/morphing/ledger.py +165 -0
- piginot/morphing/maps.py +464 -0
- piginot/morphing/membership.py +643 -0
- piginot/morphing/models.py +316 -0
- piginot/morphing/validation.py +397 -0
- piginot/mutation/__init__.py +53 -0
- piginot/mutation/engine.py +191 -0
- piginot/mutation/runner.py +194 -0
- piginot/mutation/signatures.py +192 -0
- piginot/objectives/__init__.py +158 -0
- piginot/objectives/_weak_strong.py +159 -0
- piginot/objectives/energy.py +281 -0
- piginot/objectives/energy_25d.py +170 -0
- piginot/objectives/energy_constraint.py +98 -0
- piginot/objectives/equilibrium.py +157 -0
- piginot/objectives/free_traction.py +148 -0
- piginot/objectives/gate.py +483 -0
- piginot/objectives/hierarchical_energy.py +480 -0
- piginot/objectives/kinematics.py +66 -0
- piginot/objectives/models.py +222 -0
- piginot/objectives/registry.py +63 -0
- piginot/objectives/terms.py +169 -0
- piginot/objectives/traction_and_follower.py +280 -0
- piginot/objectives/verification.py +731 -0
- piginot/objectives/virtual_work_3d.py +103 -0
- piginot/operators/__init__.py +187 -0
- piginot/operators/adapter_artifact.py +264 -0
- piginot/operators/architecture.py +918 -0
- piginot/operators/boundary_energy_operator.py +354 -0
- piginot/operators/constitutive_op.py +510 -0
- piginot/operators/energy_gate.py +334 -0
- piginot/operators/energy_operator.py +458 -0
- piginot/operators/foundation_hub.py +217 -0
- piginot/operators/gate.py +341 -0
- piginot/operators/geometry_3d.py +496 -0
- piginot/operators/geometry_tokenizer.py +868 -0
- piginot/operators/low_rank_adapter.py +688 -0
- piginot/operators/low_rank_adapter_3d.py +605 -0
- piginot/operators/multi_topology_3d.py +597 -0
- piginot/operators/multiphysics_operator_3d.py +439 -0
- piginot/operators/safetensors_io.py +344 -0
- piginot/operators/surface_operator_3d.py +700 -0
- piginot/operators/temporal_bundle_3d.py +133 -0
- piginot/optimization/__init__.py +99 -0
- piginot/optimization/bundle_bridge.py +403 -0
- piginot/optimization/dfm_constraints.py +318 -0
- piginot/optimization/ffd_shape_opt_3d.py +517 -0
- piginot/optimization/parametric_3d_bridge.py +283 -0
- piginot/optimization/parametric_bridge.py +514 -0
- piginot/optimization/problem.py +248 -0
- piginot/optimization/topology_opt_3d.py +735 -0
- piginot/optimization/trust_region.py +652 -0
- piginot/physics/__init__.py +139 -0
- piginot/physics/_validation.py +107 -0
- piginot/physics/errors.py +52 -0
- piginot/physics/neo_hookean.py +86 -0
- piginot/physics/plane_stress.py +232 -0
- piginot/problem/__init__.py +39 -0
- piginot/problem/expressions.py +47 -0
- piginot/problem/lifting.py +150 -0
- piginot/problem/material.py +108 -0
- piginot/problem/requests.py +131 -0
- piginot/problem/verification.py +395 -0
- piginot/qualify/__init__.py +111 -0
- piginot/qualify/external.py +944 -0
- piginot/qualify/gate.py +306 -0
- piginot/qualify/manifest.py +455 -0
- piginot/qualify/pipeline.py +1185 -0
- piginot/qualify/policy.py +487 -0
- piginot/qualify/report.py +123 -0
- piginot/robotics/__init__.py +168 -0
- piginot/robotics/adaptive_cbf.py +652 -0
- piginot/robotics/bridges.py +263 -0
- piginot/robotics/cbf.py +360 -0
- piginot/robotics/clik_3d.py +394 -0
- piginot/robotics/contact_diagnostics.py +707 -0
- piginot/robotics/live_coupling.py +470 -0
- piginot/robotics/mpc.py +299 -0
- piginot/robotics/newton_warp_bridge.py +610 -0
- piginot/robotics/port_hamiltonian.py +239 -0
- piginot/robotics/tactile.py +467 -0
- piginot/security/__init__.py +23 -0
- piginot/security/sigstore_provenance.py +375 -0
- piginot/serving/__init__.py +199 -0
- piginot/serving/api_server.py +465 -0
- piginot/serving/audit_ledger.py +287 -0
- piginot/serving/hybrid.py +1284 -0
- piginot/serving/recipe.py +190 -0
- piginot/serving/snap.py +1493 -0
- piginot/serving/snap_gate.py +530 -0
- piginot/serving/spectral_repair.py +399 -0
- piginot/serving/test_time_lora.py +811 -0
- piginot/stateful/__init__.py +184 -0
- piginot/stateful/artifact.py +453 -0
- piginot/stateful/constitutive.py +192 -0
- piginot/stateful/fatigue_fracture.py +949 -0
- piginot/stateful/fem_stepper.py +535 -0
- piginot/stateful/fem_stepper_3d.py +398 -0
- piginot/stateful/j2_advanced.py +553 -0
- piginot/stateful/j2_plasticity.py +685 -0
- piginot/stateful/neural_stateful.py +1062 -0
- piginot/stateful/plasticity_operator.py +544 -0
- piginot/stateful/stepper.py +554 -0
- piginot/stateful/viscoelastic.py +449 -0
- piginot/stateful/viscoelastic_operator.py +498 -0
- piginot/store/__init__.py +48 -0
- piginot/store/dataset_3d.py +446 -0
- piginot/store/errors.py +55 -0
- piginot/store/models.py +232 -0
- piginot/store/store.py +719 -0
- piginot/training/__init__.py +161 -0
- piginot/training/_checkpoint_codec.py +271 -0
- piginot/training/adaptive.py +410 -0
- piginot/training/archive_trainer.py +701 -0
- piginot/training/checkpoint.py +768 -0
- piginot/training/compute.py +469 -0
- piginot/training/constrained_objective.py +82 -0
- piginot/training/constrained_stage.py +270 -0
- piginot/training/constraint_budget.py +114 -0
- piginot/training/constraint_records.py +218 -0
- piginot/training/continual_clpm.py +872 -0
- piginot/training/diagnostics.py +402 -0
- piginot/training/energy_engine.py +453 -0
- piginot/training/energy_engine_3d.py +1616 -0
- piginot/training/engine.py +512 -0
- piginot/training/fleet.py +795 -0
- piginot/training/foundation_pretrain.py +429 -0
- piginot/training/identity.py +115 -0
- piginot/training/lbfgs_checkpoint.py +272 -0
- piginot/training/lbfgs_stage.py +386 -0
- piginot/training/parametric_3d_engine.py +1578 -0
- piginot/training/platform_fingerprint.py +22 -0
- piginot/training/preconditioned_pino.py +602 -0
- piginot/training/scheduler.py +164 -0
- piginot/training/search.py +194 -0
- piginot/training/selection.py +543 -0
- piginot/training/state.py +320 -0
- piginot/ui/__init__.py +61 -0
- piginot/ui/app.py +1317 -0
- piginot/ui/field_probes.py +171 -0
- piginot/ui/inspector.py +531 -0
- piginot/ui/job_history.py +225 -0
- piginot/ui/workbench/__init__.py +75 -0
- piginot/ui/workbench/boundary_picker.py +226 -0
- piginot/ui/workbench/cad_viewer.py +326 -0
- piginot/ui/workbench/job_runner.py +812 -0
- piginot/ui/workbench/navigation.py +200 -0
- piginot/ui/workbench/physics_forms.py +707 -0
- piginot/ui/workbench/picker_component.py +83 -0
- piginot/ui/workbench/plan_review.py +129 -0
- piginot/ui/workbench/state.py +825 -0
- piginot/ui/workbench/study_plan.py +150 -0
- piginot/ui/workbench_3d/__init__.py +55 -0
- piginot/ui/workbench_3d/component.py +62 -0
- piginot/ui/workbench_3d/parametric_explorer.py +175 -0
- piginot/ui/workbench_3d/showcase_panel.py +827 -0
- piginot/ui/workbench_3d/state_3d.py +734 -0
- piginot/ui/workbench_3d/stateful_editor.py +154 -0
- piginot/ui/workbench_3d/vv10_panel.py +335 -0
- piginot/validation/__init__.py +109 -0
- piginot/validation/component_test_contracts.py +296 -0
- piginot/validation/contracts.py +283 -0
- piginot/validation/femu_gate.py +702 -0
- piginot/validation/femu_hyperreduced.py +1853 -0
- piginot/validation/hybrid_grounding.py +470 -0
- piginot/validation/interop_gate.py +831 -0
- piginot/validation/inverse.py +439 -0
- piginot/verification/__init__.py +120 -0
- piginot/verification/amortization.py +118 -0
- piginot/verification/budget.py +223 -0
- piginot/verification/confidence.py +331 -0
- piginot/verification/envelope.py +135 -0
- piginot/verification/families.py +215 -0
- piginot/verification/holdout.py +121 -0
- piginot/verification/latency.py +71 -0
- piginot/verification/reducer.py +101 -0
- piginot/verification/report.py +143 -0
- piginot/verification/status.py +52 -0
- piginot_campaigns/__init__.py +3 -0
- piginot_campaigns/adapters.py +138 -0
- piginot_campaigns/geometry.py +216 -0
- piginot_campaigns/resources/dogbone-v1.json +201 -0
- piginot_campaigns/resources/geometry-templates.json +30 -0
- piginot_campaigns/resources/notched-v1.json +184 -0
formamech/__init__.py
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"""FormaMech: fail-closed Physics-AI, certified neural operators, and nonlinear FEM.
|
|
2
|
+
|
|
3
|
+
Exposes a clean lazy top-level API facade without eagerly importing numerical
|
|
4
|
+
libraries (``numpy``, ``torch``, ``scipy``, ``skfem``) while retaining full
|
|
5
|
+
identity-preserving ``formamech.*`` <-> ``piginot.*`` module compatibility.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
from typing import Any
|
|
11
|
+
|
|
12
|
+
from formamech._compat import install as _install
|
|
13
|
+
from piginot import __version__
|
|
14
|
+
|
|
15
|
+
_install()
|
|
16
|
+
|
|
17
|
+
_FACADE_EXPORTS = frozenset(
|
|
18
|
+
{
|
|
19
|
+
"certify_hypercircle",
|
|
20
|
+
"diagnose_environment",
|
|
21
|
+
"discover_material",
|
|
22
|
+
"qualify_external",
|
|
23
|
+
"serve_mcp",
|
|
24
|
+
"solve_3d",
|
|
25
|
+
"verify_bundle",
|
|
26
|
+
"verify_external_dossier",
|
|
27
|
+
"verify_receipt",
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def __getattr__(name: str) -> Any:
|
|
33
|
+
if name in _FACADE_EXPORTS:
|
|
34
|
+
from formamech import api as _api
|
|
35
|
+
|
|
36
|
+
value = getattr(_api, name)
|
|
37
|
+
globals()[name] = value
|
|
38
|
+
return value
|
|
39
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
__all__ = (
|
|
43
|
+
"__version__",
|
|
44
|
+
"certify_hypercircle",
|
|
45
|
+
"diagnose_environment",
|
|
46
|
+
"discover_material",
|
|
47
|
+
"qualify_external",
|
|
48
|
+
"serve_mcp",
|
|
49
|
+
"solve_3d",
|
|
50
|
+
"verify_bundle",
|
|
51
|
+
"verify_external_dossier",
|
|
52
|
+
"verify_receipt",
|
|
53
|
+
)
|
formamech/__main__.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""Run FormaMech with ``python -m formamech``."""
|
|
2
|
+
|
|
3
|
+
from formamech.cli import main
|
|
4
|
+
from piginot._job_evidence import bind_job_process, record_job_exit
|
|
5
|
+
|
|
6
|
+
bind_job_process()
|
|
7
|
+
try:
|
|
8
|
+
code = main()
|
|
9
|
+
except SystemExit as exc:
|
|
10
|
+
record_job_exit(
|
|
11
|
+
exc.code if isinstance(exc.code, int) else int(exc.code is not None)
|
|
12
|
+
)
|
|
13
|
+
raise
|
|
14
|
+
except KeyboardInterrupt:
|
|
15
|
+
record_job_exit(130)
|
|
16
|
+
raise
|
|
17
|
+
except Exception:
|
|
18
|
+
record_job_exit(1)
|
|
19
|
+
raise
|
|
20
|
+
else:
|
|
21
|
+
record_job_exit(code)
|
|
22
|
+
raise SystemExit(code)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.boundary-picker{--picker-text:var(--st-text-color,#263238);--picker-surface:var(--st-background-color,#fff);--picker-border:color-mix(in srgb, var(--picker-text) 65%, var(--picker-surface));background:var(--picker-surface);color:var(--picker-text);font-family:var(--st-font,system-ui, sans-serif);container-type:inline-size}.boundary-picker *,.boundary-picker :before,.boundary-picker :after{box-sizing:border-box}.boundary-picker :is(p,h3,figure){margin:0}.boundary-picker :is(input,select,button){color:inherit;font:inherit}.boundary-picker :is(input,select,button,[tabindex]):focus-visible{outline:2px solid var(--picker-text);outline-offset:2px}.boundary-picker :is(input:not([type=checkbox]),select,button){background:var(--picker-surface);border:1px solid var(--picker-border);border-radius:.4rem;min-width:0;min-height:2.75rem;padding:.4rem .6rem}.boundary-picker input[type=checkbox]{block-size:1rem;inline-size:1rem;accent-color:var(--picker-text);margin:0}.boundary-picker .boundary-field{gap:.35rem;display:grid}.boundary-picker .boundary-selector{max-width:38rem;margin:0 0 .9rem}.boundary-picker .boundary-grid{grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:start;gap:1rem;display:grid}.boundary-picker .boundary-figure{border:1px solid var(--picker-border);border-radius:.5rem;min-width:0;padding:.55rem}.boundary-picker .boundary-plot{background:var(--picker-surface);width:100%;height:clamp(19rem,48cqw,30rem)}.boundary-picker .boundary-figure figcaption{overflow-wrap:anywhere;padding:.35rem .2rem}.boundary-picker .boundary-mesh-toggle,.boundary-picker .boundary-component{align-items:center;gap:.55rem;min-height:1.75rem;display:flex}.boundary-picker .boundary-controls{border:1px solid var(--picker-border);border-radius:.5rem;gap:.7rem;min-width:0;padding:.8rem;display:grid}.boundary-picker .boundary-editor{gap:.65rem;display:grid}.boundary-picker h3{font-size:1.02rem;line-height:1.35}.boundary-picker fieldset{border:1px solid var(--picker-border);border-radius:.4rem;gap:.35rem;min-inline-size:0;margin:0;padding:.4rem .55rem;display:grid}.boundary-picker .boundary-field-error{overflow-wrap:anywhere;font-weight:600}.boundary-picker [aria-invalid=true]{border-width:2px}.boundary-picker .boundary-actions{flex-wrap:wrap;gap:.6rem;display:flex}.boundary-picker button{cursor:pointer}.boundary-picker button:disabled{cursor:default}.boundary-picker button.boundary-apply:not(:disabled){background:var(--picker-text);color:var(--picker-surface);font-weight:600}.boundary-picker .boundary-status:empty{position:absolute}.boundary-picker .boundary-status{overflow-wrap:anywhere}.boundary-picker .boundary-readiness{margin-block-start:1rem}.boundary-picker .boundary-readiness ul{margin-block:.3rem 0;padding-inline-start:1.25rem}.boundary-picker .boundary-table{margin-block-start:1rem;overflow:auto}.boundary-picker table{border-collapse:collapse;width:100%}.boundary-picker caption{text-align:start;padding-block-end:.45rem;font-weight:600}.boundary-picker :is(th,td){border-bottom:1px solid var(--picker-border);text-align:start;padding:.45rem}.boundary-picker [aria-current=true]{background:color-mix(in srgb, var(--picker-text) 9%, var(--picker-surface));border-inline-start:3px solid var(--picker-text)}.boundary-picker small{font-size:.85em;display:block}@container (width<=41rem){.boundary-picker .boundary-grid{grid-template-columns:minmax(0,1fr)}}
|
|
2
|
+
/*$vite$:1*/
|