Changelog#

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased#

Added#

  • Dataclass pymech.neksuite.field.Header using pydantic for reading file headers

  • Function pymech.neksuite.field.read_header()

  • Module pymech.meshtools for manipulating meshes

  • Xarray backend pymech. See pymech.dataset

  • Function pymech.neksuite.readma2()

Changed#

Deprecated#

Removed#

1.4.1 - 2021-05-07#

Backwards compatible release with a lot of housekeeping and some usability improvements. This will be the last release to support Python 3.6 and Xarray < 0.18.0

Added#

  • Common function available from the top-level import pymech as pm

  • Extras requirements to install mayavi and rich with pip install 'pymech[full]'

  • Experimental pymech.vtksuite.writevtk()

  • Environment variable PYMECH_DEBUG to control logging level. See pymech.log

Changed#

Fixed#

  • Format entire code base with black

  • Improve docs

1.4.0 - 2020-11-16#

Added#

  • Functions readre2 and writere2 to read/write binary .re2 Nek5000 meshes

Fixed#

  • indexing bug in the boundary conditions parameters in readrea

Changed#

  • Ignore some invalid ā€˜Eā€™ internal boundary conditions in readrea since they are written this way by re2torea and ignored by Nek5000.

1.3.3 - 2020-09-29#

Fixed#

  • Various fixes ā€“ including writing element map, correct order for min/max metadata ā€“ in writenek

Added#

1.3.2 - 2020-09-23#

Fixed#

  • writenek detects system endianness and byte-swaps arrays, if needed, before writing

Removed#

  • Warnings while reading/writing scalars

1.3.1 - 2020-09-17#

Changed#

  • use ndarray.tofile() for faster output

1.3.0.post0 - 2020-07-16#

Fixed#

  • Packaging issue of sdist and wheel. Now uses find_packages instead of package name.

1.3.0 - 2020-07-16#

Added#

  • Dataset module which extends xarray

Changed#

  • Faster readnek function uses less for loops

  • Lazy load pymech.core.DataLims limits as properties

  • Autogenerate documentation using sphinx extension autodoc

1.2.0 - 2020-03-18#

Added#

  • License GPL v3 or later

Changed#

  • Miscellaneous improvements in documentation, testing and packaging