Serpenttools

Latest version: v0.10.1

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

Scan your dependencies

Page 4 of 6

0.6.2

Highlights
* Depletion and detector files can be written to matlab `.mat` files from the command line with
``
$ python -m serpentTools to-matlab my_dep.m
``
* Experimental ``serpentTools.xs.BranchCollector`` object compresses coefficient file data into a more concise format. Each group constant is stored as a multidimensional array spanning all universes, burnup points, and perturbation states.
* Data files are bundled in source distribution
* Plotting routines will attach to the active plot through `matplotlib.pyplot.gca` if not `ax` argument is given

Deprecations
* DepletionReader `saveAsMatlab` will be deprecated in 0.7.0 in favor of a `toMatlab` method

0.6.1

Updates
`serpentTools` can now be installed via [`pip`](https://pypi.org/project/serpentTools/), greatly simplifying the install procedure.

Changes
- 256 - Use `yaml.safe_load` everywhere
- 257 - DepletionReader export to matlab using [`scipy.io.savemat`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.io.savemat.html?highlight=savemat#scipy.io.savemat) with [`saveAsMatlab`](https://serpent-tools.readthedocs.io/en/latest/api/depletion.html#serpentTools.parsers.depletion.DepletionReader.saveAsMatlab)
- 259 - More clarity when using [`serpentTools.read`](https://serpent-tools.readthedocs.io/en/latest/api/parsers.html#serpentTools.parsers.read)

0.6.0

* 174 - Added parent object ``BaseObject`` with basic comparison
method from which all objects inherit. Comparison method contains
upper and lower bounds for values w/o uncertainties, 191
* 196 - Add comparison methods for `resultReader` and
`homogUniv` objects
* 228 - Add comparison methods for `detectorReader` and
`detector` objects
* 236 - Add comparison methods for `depletionReader` and
`DepletedMaterial` objects
* 241 - Fix a bug in the CLI that rendered the ability to generate files with
unique random seeds. `python -m serpentTools seed <input> <N>` can now be properly
used.
* 249 - Better sparse support for depletion matrix, ``depmtx`` files with a
`depmtxReader`
* 252 - Better axis and colorbar labeling for `detector` mesh plots
* 254 - Better plotting of single concentrations with `depmtxReader`
* 255 - `depletionReader` can capture material with underscores now!

0.6.0rc1

This is the first release candidate for the version `0.6.0`. Passing as a release candidate to give some time for input on the comparison methods

Changelog

* 174 - Added parent object ``BaseObject`` with basic comparison
method from which all objects inherit. Comparison method contains
upper and lower bounds for values w/o uncertainties, 191
* 196 - Add comparison methods for ``resultReader`` and
``homogUniv`` objects
* 228 - Add comparison methods for ``detectorReader`` and
``detector`` objects
* 236 - Add comparison methods for ``depletionReader`` and
``DepletedMaterial`` objects
* 241 - Fix a bug in the CLI that rendered the ability to generate files with
unique random seeds. ``python -m serpentTools seed <input> <N>`` can now be properly
used.

0.5.3

* 221 - Expanded ``utils`` module to better assist developers
* 227 - Better documentation of our :ref:`cli`.
Better documentation and testing of functions for generating input
files with unique random seeds - :mod:serpentTools.seed`
* 229 - :meth:`serpentTools.parsers.sensitivity.SensitivityReader.plot`
now respects the option to not set x nor y labels.
* 231 - :class:`~serpentTools.parsers.results.ResultsReader` objects
can now read files that do not contain group constant data. The setting
:ref:results-expectGcu` should be used to inform the reader that no
group constant data is anticipated

0.5.2

* Import test and example files using `serpentTools.data`. Load example readers with `serpentTools.data.readDataFile()`
* Support for structured or unstructured matrix plotting with `serpentTools.plot.cartMeshPlot()`
* Support for plotting hexagonal meshes with `serpentTools.objects.detectors.HexagonalDetector.hexPlot()`
* Access serpentTools.objects.detectors.Detector objects directly from `serpentTools.parsers.detector.DetectorReader` with `reader[detName]`
* Access materials from `serpentTools.readers.depletion.DepletionReader` and `serpentTools.samplers.depletion.DepletionSampler` using key-like indexing, e.g. `reader[matName] == reader.material[matName]`
* Better default x-axis labels for simple detector plots

API Changes
-----------

* Some settings in ResultsReader.metadata are now stored as ints or floats, depending upon their nature. Many of these variables refer to flags of settings used by SERPENT

Page 4 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.