Metadata-Version: 2.1
Name: octree-creation-app
Version: 0.2.0b2
Summary: Octree creation app.
Home-page: https://www.mirageoscience.com/mining-industry-software/python-integration/
License: MIT
Author: Mira Geoscience
Author-email: support@mirageoscience.com
Maintainer: Dominique Fournier
Maintainer-email: dominiquef@mirageoscience.com
Requires-Python: >=3.10,<4.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Operating System :: Unix
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Dist: Pillow (>=10.3.0,<10.4.0)
Requires-Dist: discretize (==0.10.*)
Requires-Dist: geoapps-utils (>=0.4.0b1,<0.5.0a.dev)
Requires-Dist: geoh5py (>=0.10.0b1,<0.11.0a.dev)
Requires-Dist: h5py (>=3.2.1,<4.0.0)
Requires-Dist: numpy (>=1.26.0,<1.27.0)
Requires-Dist: pydantic (>=2.5.2,<3.0.0)
Requires-Dist: scipy (>=1.14.0,<1.15.0)
Project-URL: Documentation, https://mirageoscience-octree-creation-app.readthedocs-hosted.com/
Project-URL: Repository, https://github.com/MiraGeoscience/octree-creation-app
Description-Content-Type: text/x-rst

|coverage| |maintainability| |precommit_ci| |style| |version| |status| |pyversions|

.. |docs| image:: https://readthedocs.com/projects/mirageoscience-octree-creation-app/badge/?version=latest
    :alt: Documentation Status
    :target: https://mirageoscience-octree-creation-app.readthedocs-hosted.com/en/latest/?badge=latest

.. |coverage| image:: https://codecov.io/gh/MiraGeoscience/octree-creation-app/graph/badge.svg?token=8DzYB9EWdR
    :alt: Code coverage
    :target: https://codecov.io/gh/MiraGeoscience/octree-creation-app

.. |style| image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :alt: Coding style
    :target: https://github.com/pf/black

.. |version| image:: https://img.shields.io/pypi/v/octree-creation-app.svg
    :alt: version on PyPI
    :target: https://pypi.python.org/pypi/octree-creation-app/

.. |status| image:: https://img.shields.io/pypi/status/octree-creation-app.svg
    :alt: version status on PyPI
    :target: https://pypi.python.org/pypi/octree-creation-app/

.. |pyversions| image:: https://img.shields.io/pypi/pyversions/octree-creation-app.svg
    :alt: Python versions
    :target: https://pypi.python.org/pypi/octree-creation-app/

.. |precommit_ci| image:: https://results.pre-commit.ci/badge/github/MiraGeoscience/octree-creation-app/main.svg
    :alt: pre-commit.ci status
    :target: https://results.pre-commit.ci/latest/github/MiraGeoscience/octree-creation-app/main

.. |maintainability| image:: https://api.codeclimate.com/v1/badges/078c1e4de5e0bd8091c1/maintainability
    :alt: Maintainability
    :target: https://codeclimate.com/github/MiraGeoscience/octree-creation-app/maintainability


Octree Creation
===============
The **octree-creation-app** package lets users create Octree mesh objects with local refinements using the SimPEG.discretize package. The refinements can be performed on any number of ``Objects`` stored in a ``geoh5`` file.

.. contents:: Table of Contents
   :local:
   :depth: 3


Documentation
^^^^^^^^^^^^^
`Online documentation <https://mirageoscience-octree-creation-app.readthedocs-hosted.com/en/latest/>`_


Installation
^^^^^^^^^^^^
**octree-creation-app** is currently written for Python 3.10 or higher.

Install Conda
-------------

To install **octree-creation-app**, you need to install **Conda** first.

We recommend to install **Conda** using `miniforge`_.

.. _miniforge: https://github.com/conda-forge/miniforge

Within a conda environment
--------------------------

You can install (or update) a conda environment with all the requires packages to run **octree-creation-app**.
To do so you can directly run the **Install_or_Update.bat** file by double left clicking on it.

Install with conda
------------------

You can install the package using ``conda`` and the ``.lock`` files from a conda prompt:

.. code-block:: bash

  conda env create -n my-env -f environments/[the_desired_env].lock.yml

Install with PyPI
-----------------

You should not install the package from PyPI, as the app requires conda packages to run.
Still, you can install it in a conda environment without its dependencies (``--no-deps``).

From PyPI
~~~~~~~~~

To install the **octree-creation-app** package published on PyPI:

.. code-block:: bash

    pip install -U --no-deps octree-creation-app

From a Git tag or branch
~~~~~~~~~~~~~~~~~~~~~~~~
If the package is not on PiPY yet, you can install it from a Git tag:

.. code-block:: bash

    pip install -U --no-deps --force-reinstall https://github.com/MiraGeoscience/octree-creation-app/archive/refs/tags/TAG.zip

Or to install the latest changes available on a given Git branch:

.. code-block:: bash

    pip install -U --no-deps --force-reinstall https://github.com/MiraGeoscience/octree-creation-app/archive/refs/heads/BRANCH.zip

.. note::
    The ``--force-reinstall`` option is used to make sure the updated version
    of the sources is installed, and not the cached version, even if the version number
    did not change. The ``-U`` or ``--upgrade`` option is used to make sure to get the latest version,
    on not merely reinstall the same version. As the package is aimed to be in a **Conda environment**, the option ``--no-deps`` is used to avoid installing the dependencies with pip, as they will be installed with conda.

From a local copy of the sources
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you have a git clone of the package sources locally,
you can install **octree-creation-app** from the local copy of the sources with:

.. code-block:: bash

    pip install -U --force-reinstall path/to/project_folder_with_pyproject_toml

Or in **editable mode**, so that you can edit the sources and see the effect immediately at runtime:

.. code-block:: bash

    pip install -e -U --force-reinstall path/to/project_folder_with_pyproject_toml

Setup for development
^^^^^^^^^^^^^^^^^^^^^
To configure the development environment and tools, please see `README-dev.rst`_.

.. _README-dev.rst: README-dev.rst

License
^^^^^^^
MIT License

Copyright (c) 2024 Mira Geoscience

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


Third Party Software
^^^^^^^^^^^^^^^^^^^^
The octree-creation-app Software may provide links to third party libraries or code (collectively "Third Party Software")
to implement various functions. Third Party Software does not comprise part of the Software.
The use of Third Party Software is governed by the terms of such software license(s).
Third Party Software notices and/or additional terms and conditions are located in the
`THIRD_PARTY_SOFTWARE.rst`_ file.

.. _THIRD_PARTY_SOFTWARE.rst: THIRD_PARTY_SOFTWARE.rst

Copyright
^^^^^^^^^
Copyright (c) 2023 Mira Geoscience Ltd.

