Discretize

Latest version: v0.10.0

Safety actively analyzes 613750 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 9

0.10.0

What's Changed
* Add black, flake8 and flake8 plugins to environment file by santisoler in https://github.com/simpeg/discretize/pull/327
* Use any Python 3 in pre-commit by santisoler in https://github.com/simpeg/discretize/pull/328
* Simplex stashing by jcapriot in https://github.com/simpeg/discretize/pull/329
* Add new TensorCell class by santisoler in https://github.com/simpeg/discretize/pull/325
* Configure pyvista for doc builds by jcapriot in https://github.com/simpeg/discretize/pull/330
* Add a noexcept clause to the wrapper function by jcapriot in https://github.com/simpeg/discretize/pull/331
* Face props mass matrices by dccowan in https://github.com/simpeg/discretize/pull/326
* Pin flake8 by jcapriot in https://github.com/simpeg/discretize/pull/335
* Add cell_nodes property to TensorMesh by santisoler in https://github.com/simpeg/discretize/pull/333
* Update a test expression to fix a logical short circuit by munahaf in https://github.com/simpeg/discretize/pull/339
* Add export config for git archives by jcapriot in https://github.com/simpeg/discretize/pull/340
* Pyproject.toml by jcapriot in https://github.com/simpeg/discretize/pull/338
* CIbuildwheel by jcapriot in https://github.com/simpeg/discretize/pull/342
* Add Release Notes for 0.10.0 by jcapriot in https://github.com/simpeg/discretize/pull/343

New Contributors
* munahaf made their first contribution in https://github.com/simpeg/discretize/pull/339

**Full Changelog**: https://github.com/simpeg/discretize/compare/v0.9.0...v0.10.0

0.9.0

What's Changed
* Add stacklevel to warnings by jcapriot in https://github.com/simpeg/discretize/pull/309
* Switch to try_emplace by jcapriot in https://github.com/simpeg/discretize/pull/308
* Assert tests by jcapriot in https://github.com/simpeg/discretize/pull/310
* Remove calls with deprecated dir argument by jcapriot in https://github.com/simpeg/discretize/pull/312
* change name and description of average edge to face by jcapriot in https://github.com/simpeg/discretize/pull/314
* update doc page style sheet by jcapriot in https://github.com/simpeg/discretize/pull/315
* Curvilinear vector boundary integral by jcapriot in https://github.com/simpeg/discretize/pull/316
* Cyl average edge by jcapriot in https://github.com/simpeg/discretize/pull/317
* Feat/simp boundary by jcapriot in https://github.com/simpeg/discretize/pull/318
* Add message to assertion error in tests. by jcapriot in https://github.com/simpeg/discretize/pull/319
* Nodal boundary example by jcapriot in https://github.com/simpeg/discretize/pull/320
* Capture scroll by prisae in https://github.com/simpeg/discretize/pull/322
* Cyl mesh generalization by jcapriot in https://github.com/simpeg/discretize/pull/321
* 0.9.0 staging by jcapriot in https://github.com/simpeg/discretize/pull/323
* Add `total_nodes` method to TreeMeshes by santisoler in https://github.com/simpeg/discretize/pull/324

New Contributors
* santisoler made their first contribution in https://github.com/simpeg/discretize/pull/324

**Full Changelog**: https://github.com/simpeg/discretize/compare/v0.8.3...v0.9.0

0.8.3

What's Changed
* Dark mode theme for documentation by jcapriot in https://github.com/simpeg/discretize/pull/292
* Testing environment updates by jcapriot in https://github.com/simpeg/discretize/pull/294
* Diagonal tree balance by jcapriot in https://github.com/simpeg/discretize/pull/295
* More tree refine functions by jcapriot in https://github.com/simpeg/discretize/pull/296
* Add new refine surface, bounding box, and point refine methods. by jcapriot in https://github.com/simpeg/discretize/pull/297
* Build maintenance by jcapriot in https://github.com/simpeg/discretize/pull/299
* implement zeros outside for interpolation function by jcapriot in https://github.com/simpeg/discretize/pull/298
* Add style testing by jcapriot in https://github.com/simpeg/discretize/pull/300
* Documentation updates by jcapriot in https://github.com/simpeg/discretize/pull/301
* 0.8.3 staging by jcapriot in https://github.com/simpeg/discretize/pull/302


**Full Changelog**: https://github.com/simpeg/discretize/compare/v0.8.2...v0.8.3

0.6.0

This minor release is intended to bring consistent pep8 style naming across all of discretize's classes and functions.

There are two major types of renaming, aliases and deprecations. We have chosen to move to more descriptive property names for classes, generally. For example, `mesh.area` is deprecated and now is `mesh.face_area`. Also properties like `mesh.vnC` are now officially `mesh.shape_cells` due to the more descriptive name, but can also be accessed as `mesh.vnC` to speed up some code writing for users. We have included a full list of aliases and deprecations below. In PR 227 we have detailed our reasonings behind individual name choices.

The other big change that will likely cause previous code to break is that all of these `mesh.shape_*` type properties are now explicitly `tuple`-s, making them immutable. These properties could previously be modified which would result in undefined and unsafe behavoir. A side effect of this, is that any code that relied on these properties being `numpy.ndarray`-s, will break. This is intentional.

There's a few internal changes as well, to reorganize the file structure. importing items in `discretize.utils` from their individual module files is not recommended and might result in future broken code. Please only import these items from the `discretize.utils` module.

We have also separated the `matplotlib` plotting code into a separate module: `discretize.utils.mixins.mpl_mod`. At the same time we have further improved the plotting speed of `discretize.TreeMesh` and `discretize.CurvilinearMesh`. This also allows all of these functions to have a unified calling convention.

Finally, we have removed assert errors in favor of throwing the proper exception when checking inputs. We have removed all references to `__future__` and `six` to clean up and drop python 2 compatibility.

Changes
*********
For a full list of deprecations and aliases please visit the release notes in the documentation <a href=http://discretize.simpeg.xyz/en/master/release/0.6.0-notes.html>here</a>.

0.5.0

======================

This minor release has a few small bug fixes as well as a new volume averaging operator.

The Volume Averaging operator has been implemented for arbitrary `TensorMesh`, `TreeMesh`, and combinations of them. It is defined as being a mass conserving operation. More details can be found in its documentation [discretize.utils.volume_average](http://discretize.simpeg.xyz/en/master/api/generated/discretize.utils.volume_average.html#discretize.utils.volume_average)

There are also some updates for the new deprecations in `matplotlib` to hopefully throw less deprecation warnings internally. There are still a few left which are on our radar to fix in the next patch.

We are also dropping support for python 3.5 which will reach end-of-life within a few weeks.

Contributors
-------------

* jcapriot
* prisae
* bluetyson

Pull requests
-------------

* 212: Volume average
* 216: Update 2_tensor_mesh.py
* 217: Fix Slicer matplotlib-warning.
* 220: 0.5.0 release notes and requirements update

0.4.11

- commits from: jcapriot, prisae, thast
- reviews from: jcapriot, lheagy

summary of changes
This is a patch to fix a few bugs that have popped up over the last few months, as well as a single function addition to output only the model for a TreeMesh.

Also we have dropped testing of discretize on Python 2.7 as it is officially in end-of-life stage (as of January 1st, 2020).

- From 191:
Enables discretize to be installed on a system without NumPy present beforehand (for example when pip installing discretize).
It also contains a small update to the curvilinear mesh view that updates that function to be in line with the other ``plotImage`` functions.

- From 189:
Bugfix. Slicer failed if `xslice` was provided without a `yslice`, because of wrong comparison.
Before, if you provided a homogenous model, it looked like this:
![Selection_002](https://user-images.githubusercontent.com/8020943/71760752-e2b0eb80-2ec2-11ea-944e-1fb14ff5b802.png)
So the colour in the xy- and xz-plots is wrong. As soon as you scroll, the colour in the yz-plot will change to the wrong colour too.
With the bug-fix, they all get the right colour, and will remain correct if scrolling:
![Selection_001](https://user-images.githubusercontent.com/8020943/71760754-e2b0eb80-2ec2-11ea-9fa8-efc873b69d51.png)
The bug only affects homogeneous fullspaces, which caused an issue with the range used by `colorbar()`.

- From 187:
We can output models through the `writeUBC` method of the TreeMesh. However, we might want, for symmetry with `TensorMesh`, also have the `writeModelUBC` function, which will only write out the model.

Page 1 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.