Skip to content

Releases: mtrocadomoreira/ozzy

v1.0.6

13 Nov 13:16
Compare
Choose a tag to compare

v1.0.6 (2024-11-13)

Bug Fixes

  • part_mixin: Expression with double quotes inside double quotes was throwing an error for Python 3.10 (65c7549)

v1.0.5

13 Nov 04:40
Compare
Choose a tag to compare

v1.0.5 (2024-11-13)

Bug Fixes

  • core: Remove obsolete argument for backend.parse_data that was being called from ozzy.open_compare and raising an error (2c5fa8e)

Documentation

  • Fix some broken links after update (60afa7d)

v1.0.4

12 Nov 18:37
Compare
Choose a tag to compare

v1.0.4 (2024-11-12)

Bug Fixes

  • part_mixin: Fix error thrown by bin_into_grid when called on a data object that didn't contain a 't' coordinate (5cd488c)

  • lcode_backend: Fix missing-argument error when trying to read beamfile.bin files (776a1a2)

Documentation

  • Update documentation (b43f5dc)

  • Update "Installation" and "Getting started" page (6c726a5)

  • Change heading formatting of changelog template (1bf9a95)

Refactoring

  • Change how backend-specific arguments are passed from the open functions to each backend (easier to extend) (825b7ab)

v1.0.0

22 Oct 12:10
Compare
Choose a tag to compare

v1.0.0 (2024-10-22)

Breaking

  • refactor: replace statistics.parts_into_grid with dataset method bin_into_grid

Replace statistics.parts_into_grid with a Dataset method called bin_into_grid accessible to particle data (pic_data_type = 'part').

BREAKING CHANGE: statistics.parts_into_grid does not work anymore

Please replace the function statistics.parts_into_grid with the ds.ozzy.bin_into_grid method. As an example, the following code

import ozzy as oz
import ozzy.statistics as stats
import numpy as np

# Create a sample particle dataset
particles = oz.Dataset(
    {
        "x1": ("pid", np.random.uniform(0, 10, 10000)),
        "x2": ("pid", np.random.uniform(0, 5, 10000)),
        "q": ("pid", np.ones(10000)),
    },
    coords={"pid": np.arange(10000)},
    attrs={"pic_data_type": "part"}
)

# Create axes for binning
axes = oz.Dataset(
    coords={
        "x1": np.linspace(0, 10, 101),
        "x2": np.linspace(0, 5, 51),
    },
    attrs={"pic_data_type": "grid"}
)

# Bin into grid, axisymmetric geometry
binned = stats.parts_into_grid(particles, axes, r_var="x2")
grid_data_axisym = particles.ozzy.bin_into_grid(axes, r_var="x2")

should be replaced by

import ozzy as oz
import numpy as np
...
# Bin into grid, axisymmetric geometry
binned = particles.ozzy.bin_into_grid(axes, r_var="x2")
``` ([`093b9bd`](https://github.com/mtrocadomoreira/ozzy/commit/093b9bd81f498a50a48d9aa804dae1dc19168ad0))

### Documentation

* docs: add release notes to website, create custom changelog template ([`2f8de9e`](https://github.com/mtrocadomoreira/ozzy/commit/2f8de9ee1c3b454dcc6db69a0ea637bdff4adcd1))

### Refactoring

* refactor(utils): make str_exists argument of get_attr_if_exists optional ([`5840bc4`](https://github.com/mtrocadomoreira/ozzy/commit/5840bc44884455dbe20508715e52a1cb4321773a))

* refactor: use helper functions to handle DataArray attributes whenever possible ([`5d53830`](https://github.com/mtrocadomoreira/ozzy/commit/5d53830538f88959180e5762b6d4893855d16cc1))

v0.2.1

21 Oct 15:14
Compare
Choose a tag to compare

v0.2.1 (2024-10-21)

Bug Fixes

  • fix(lcode_backend): error is now raised when an invalid n0 argument is passed to convert_q (0c2bb5f)

Chores

  • chore: update package dependencies (be27b1f)

  • chore(ci-cd): add black package to docs website deployment (428795c)

Documentation

  • docs: add feedback widget across pages (426b187)

  • docs: try to add umami analytics in different way (7877d0e)

  • docs: add umami analytics for documentation website (3e62f7b)

  • docs: add black as project dependency for better formatting of code signatures in documentation (ae7b7b3)

  • docs: debug and small corrections (0bd401b)

  • docs: change main blurb, include install instructions with git and poetry (29be6fd)

Refactoring

  • refactor(utils): add two helper functions to set DataArray attributes depending on whether they already exist or not, + unit tests for these functions (a2d20bc)

Testing

  • test: correct failing tests (0a0493a)

  • test: add unit tests for movie function in ozzy.plot (a097e57)

Unknown

  • Merge pull request #2 from mtrocadomoreira/tests

Tests (f4900f3)

  • Merge branch 'main' into tests (7fc0890)

v0.2.0

15 Oct 23:51
Compare
Choose a tag to compare

v0.2.0 (2024-10-15)

Chores

  • chore: add hvplot and jupyter-bokeh as optional dependencies (923e034)

  • chore: add ipykernel to pyproject.toml dependencies (flexible version) (9438e55)

  • chore: add ipykernel to pyproject.toml requirements (715ecd2)

  • chore: add pytest and hypothesis to pyproject.toml requirements (5d1c438)

Code Style

  • style(backend_interface): sort list of files before passing it on to backend parser (2664437)

Features

  • feat(plot): save movies of ozzy plots (b4b61c7)

Unknown

  • chores(statistics): add commented BUG to-do item (2e3bcc6)

  • doc(lcode_backend): correct example of correct_q (3b980d8)

v0.1.7

07 Oct 20:00
Compare
Choose a tag to compare

v0.1.7 (2024-10-07)

Fix

  • fix(part_mixin,statistics): get_phase_space bug fixes
  • no error when limits are set automatically and all quantity values are zero
  • make sure that axisymmetric geometry is taken into account correctly when the radius variable isn't being binned directly (6fcd37d)
  • fix(lcode_backend): correct units of particle momenta (c12f766)

v0.1.6

30 Sep 14:06
Compare
Choose a tag to compare

v0.1.6 (2024-09-30)

Fix

  • fix(statistics): units in parts_into_grid are now fetched from raw_ds argument (96a7340)

v0.1.5

23 Sep 18:26
Compare
Choose a tag to compare

v0.1.5 (2024-09-23)

Performance

  • perf(lcode_backend): improve concatenation of tb files along time (d4d08a5)

Refactor

  • refactor(statistics): add commented todo's (1816b9b)

v0.1.4

18 Sep 17:54
Compare
Choose a tag to compare

v0.1.4 (2024-09-18)

Fix

  • fix(osiris_backend): change momentum units (6e84664)