Skip to content

Commit 4318f19

Browse files
committed
1.0.4
Automatically generated by python-semantic-release
1 parent b43f5dc commit 4318f19

File tree

3 files changed

+96
-45
lines changed

3 files changed

+96
-45
lines changed

CHANGELOG.md

+94-43
Original file line numberDiff line numberDiff line change
@@ -3,87 +3,91 @@
33
<!--start-docs-->
44

55

6-
## Version 1.0.3
6+
## Version 1.0.4
77

8-
Released 04-11-2024
8+
Released 12-11-2024
99

10-
### Documentation
10+
### Bug Fixes
1111

12-
* [`1c50582`](https://github.com/mtrocadomoreira/ozzy/commit/1c505822c1096fb0d6bf1c3a9ff390ff84f48216): Correct changelog template
12+
* [`5cd488c`](https://github.com/mtrocadomoreira/ozzy/commit/5cd488cbaf6819eabe91cf75e4d16c7bfd1ae3ff): Fix error thrown by `bin_into_grid` when called on a data object that didn&#39;t contain a `&#39;t&#39;` coordinate
1313

1414

1515

1616

1717

1818

19+
* [`776a1a2`](https://github.com/mtrocadomoreira/ozzy/commit/776a1a2f0e6754aa4a0aaf2d7a5fda7b9bd91416): Fix missing-argument error when trying to read `beamfile.bin` files
20+
21+
22+
1923

20-
## Version 1.0.2
2124

22-
Released 04-11-2024
2325

2426
### Documentation
2527

26-
* [`2d1afe0`](https://github.com/mtrocadomoreira/ozzy/commit/2d1afe079632a6ef7188378746f55bc4f1482ddc): Update installation instructions
28+
* [`b43f5dc`](https://github.com/mtrocadomoreira/ozzy/commit/b43f5dcd8f169e7f13e358e4baf115b518be7044): Update documentation
2729

2830

2931

3032

3133

3234

35+
* [`6c726a5`](https://github.com/mtrocadomoreira/ozzy/commit/6c726a56eba8a465246a5df1c6805e61b979edaa): Update &#34;installation&#34; and &#34;getting started&#34; page
3336

34-
## Version 1.0.1
37+
38+
39+
40+
41+
42+
* [`1bf9a95`](https://github.com/mtrocadomoreira/ozzy/commit/1bf9a954efc837d543557360dab6dddf7ca4db42): Change heading formatting of changelog template
43+
44+
45+
46+
47+
48+
49+
### Refactoring
50+
51+
* [`825b7ab`](https://github.com/mtrocadomoreira/ozzy/commit/825b7abbe60d9876d6a4c260f8cb39c0882deaaf): Change how backend-specific arguments are passed from the `open` functions to each backend (easier to extend)
52+
53+
54+
55+
56+
57+
58+
59+
## Version 1.0.3
3560

3661
Released 04-11-2024
3762

38-
### Breaking
63+
### Documentation
3964

40-
* [`d7da0c8`](https://github.com/mtrocadomoreira/ozzy/commit/d7da0c893acfe8d9eb22917dd4eb07643d92aa8f): Replace `statistics.parts_into_grid` with dataset method `bin_into_grid`
65+
* [`1c50582`](https://github.com/mtrocadomoreira/ozzy/commit/1c505822c1096fb0d6bf1c3a9ff390ff84f48216): Correct changelog template
4166

4267

4368

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

46-
**Breaking change:** `statistics.parts_into_grid` does not work anymore
4770

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

50-
```python
51-
import ozzy as oz
52-
import ozzy.statistics as stats
53-
import numpy as np
5472

55-
particles = oz.Dataset(
56-
{
57-
"x1": ("pid", np.random.uniform(0, 10, 10000)),
58-
"x2": ("pid", np.random.uniform(0, 5, 10000)),
59-
"q": ("pid", np.ones(10000)),
60-
},
61-
coords={"pid": np.arange(10000)},
62-
attrs={"pic_data_type": "part"}
63-
)
73+
## Version 1.0.2
74+
75+
Released 04-11-2024
76+
77+
### Documentation
78+
79+
* [`2d1afe0`](https://github.com/mtrocadomoreira/ozzy/commit/2d1afe079632a6ef7188378746f55bc4f1482ddc): Update installation instructions
6480

65-
axes = oz.Dataset(
66-
coords={
67-
"x1": np.linspace(0, 10, 101),
68-
"x2": np.linspace(0, 5, 51),
69-
},
70-
attrs={"pic_data_type": "grid"}
71-
)
7281

73-
binned = stats.parts_into_grid(particles, axes, r_var="x2")
74-
grid_data_axisym = particles.ozzy.bin_into_grid(axes, r_var="x2")
75-
```
76-
should be replaced by
7782

78-
```python
79-
import ozzy as oz
80-
import numpy as np
81-
...
82-
binned = particles.ozzy.bin_into_grid(axes, r_var="x2")
83-
```
8483

8584

8685

86+
87+
## Version 1.0.1
88+
89+
Released 04-11-2024
90+
8791
### Bug Fixes
8892

8993
* [`0e0f1f2`](https://github.com/mtrocadomoreira/ozzy/commit/0e0f1f25cb8e1ba203995b2b7c8cc007ecbbf1b9): Fix attribute assignment in `bin_into_grid` and reorder dimensions after binning (for chunking and performance)
@@ -188,6 +192,53 @@ Released 04-11-2024
188192

189193

190194

195+
* [`d7da0c8`](https://github.com/mtrocadomoreira/ozzy/commit/d7da0c893acfe8d9eb22917dd4eb07643d92aa8f): Replace `statistics.parts_into_grid` with dataset method `bin_into_grid`
196+
197+
198+
199+
Replace `statistics.parts_into_grid` with a Dataset method called `bin_into_grid` accessible to particle data (`pic_data_type = 'part'`).
200+
201+
**Breaking change:** `statistics.parts_into_grid` does not work anymore
202+
203+
Please replace the function `statistics.parts_into_grid` with the `ds.ozzy.bin_into_grid` method. As an example, the following code
204+
205+
```python
206+
import ozzy as oz
207+
import ozzy.statistics as stats
208+
import numpy as np
209+
210+
particles = oz.Dataset(
211+
{
212+
"x1": ("pid", np.random.uniform(0, 10, 10000)),
213+
"x2": ("pid", np.random.uniform(0, 5, 10000)),
214+
"q": ("pid", np.ones(10000)),
215+
},
216+
coords={"pid": np.arange(10000)},
217+
attrs={"pic_data_type": "part"}
218+
)
219+
220+
axes = oz.Dataset(
221+
coords={
222+
"x1": np.linspace(0, 10, 101),
223+
"x2": np.linspace(0, 5, 51),
224+
},
225+
attrs={"pic_data_type": "grid"}
226+
)
227+
228+
binned = stats.parts_into_grid(particles, axes, r_var="x2")
229+
grid_data_axisym = particles.ozzy.bin_into_grid(axes, r_var="x2")
230+
```
231+
should be replaced by
232+
233+
```python
234+
import ozzy as oz
235+
import numpy as np
236+
...
237+
binned = particles.ozzy.bin_into_grid(axes, r_var="x2")
238+
```
239+
240+
241+
191242
* [`5840bc4`](https://github.com/mtrocadomoreira/ozzy/commit/5840bc44884455dbe20508715e52a1cb4321773a): Make str_exists argument of get_attr_if_exists optional
192243

193244

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "ozzy-pic"
7-
version = "1.0.3"
7+
version = "1.0.4"
88
description = "PIC simulation data analysis for the lazy and impatient"
99
authors = [
1010
"Mariana Moreira <[email protected]>",

src/ozzy/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
]
1515

1616

17-
__version__ = "1.0.3"
17+
__version__ = "1.0.4"

0 commit comments

Comments
 (0)