Skip to content

Releases: neutrinoceros/inifix

v2.1.1

27 Apr 20:32
e03a751
Compare
Choose a tag to compare

What's Changed

  • BUG: fix a bug where string values containing whitespaces would incorrectly be splitted by @neutrinoceros in #106

Full Changelog: v2.1.0...v2.1.1

v2.0.0

17 Apr 11:40
Compare
Choose a tag to compare

What's Changed

The format enforced by inifix-format was changed to improve compacity and readability. The new format is designed to be closer to manual formatting that is actually perfomed by Idefix users and contributors.

This is considered a major version change because the new formatter, by design, is no configurable, and in particular doesn't support the --name-column-size flag implemented in inifix 1.2

The API is otherwize identical to version 1.2.1

Format differences

Values and comments are aligned in columns and by section. In previous versions they were aligned globally, with hard coded column widths, resulting in much more space being wasted.
The new format is intended to be more legible and closer to what Idefix users actually do manually.
Here's a small example of the previous format compared with the new one

inifix 1.2.1

[Grid]
X1-grid              1  0.3  32  u  3.0
X2-grid              1  1.15  32  u  3.141592653589793                          # leave out the pole
X3-grid              1  -3.141592653589  32  u  3.141592653589793               # full azimuthal domain

[TimeIntegrator]
CFL                  0.5                                                        # loose CFL
tstop                1.e-4                                                      # short run
first_dt             1.e-4
nstages              2

[Hydro]
solver               hllc
gravPotential        userdef
csiso                userdef
viscosity            rkl  userdef
fargo                userdef

[Boundary]
X1-beg               userdef
X1-end               userdef
X2-beg               userdef
X2-end               userdef
X3-beg               periodic
X3-end               periodic

inifix 2.0.0

[Grid]
X1-grid    1  0.3              32  u  3.0
X2-grid    1  1.15             32  u  3.141592653589793    # leave out the pole
X3-grid    1  -3.141592653589  32  u  3.141592653589793    # full azimuthal domain

[TimeIntegrator]
CFL         0.5      # loose CFL
tstop       1.e-4    # short run
first_dt    1.e-4
nstages     2

[Hydro]
solver           hllc
gravPotential    userdef
csiso            userdef
viscosity        rkl      userdef
fargo            userdef

[Boundary]
X1-beg    userdef
X1-end    userdef
X2-beg    userdef
X2-end    userdef
X3-beg    periodic
X3-end    periodic

Full Changelog: v1.2.1...v2.0.0

v1.2.1

17 Apr 11:21
d809335
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.2.1

v1.2.0

19 Mar 11:29
63460ce
Compare
Choose a tag to compare

What's Changed

new public API fonction

added inifix.dumps and inifix.loads convenience functions to mirror std lib module json API
contributed by @neutrinoceros in #99

Bug fixes

With this release I'm changing type casting rules for number using the exponent notation, and restricting it to floats, while in previous versions "1e5" would be decoded as an integer, and int(100_000) would conversely be encoded as "1e5". The previous behaviour was problematic because Idefix (1.0) itself cannot parse this notation if it's used for integers.
fix by @neutrinoceros in #99

Full Changelog: v1.1.0...v1.2.0

v1.1.0

23 Feb 14:34
e54bdbe
Compare
Choose a tag to compare

What's Changed

  • ENH: inifix-format now produces more compact files, with fewer empty lines. by @neutrinoceros in #98

Full Changelog: v1.0.3...v1.1.0

v1.0.3

10 Feb 18:11
de4318f
Compare
Choose a tag to compare

What's Changed

  • BUG: don't try to be clever with cumulative retcodes to avoid retcode overflow by @neutrinoceros in #97

Full Changelog: v1.0.2...v1.0.3

v1.0.2

30 Jan 09:51
7a1af79
Compare
Choose a tag to compare

What's Changed

  • TYP: add py.typed marker file to improve downstream type-checking by @neutrinoceros in #95

Full Changelog: v1.0.1...v1.0.2

v1.0.1

29 Jan 23:45
4686cd2
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.0.0...v1.0.1

v1.0.0

15 Jan 16:04
6858cc8
Compare
Choose a tag to compare

What's Changed

The API is now declared stable and any future intentionally breaking change
will follow a deprecation cycle.

  • DEPR: drop support for Python 3.6 and 3.7, inifix now requires Python 3.8 or newer
  • DEPR: end deprecation cycle for function arguments marked as "future-potisional-only"
  • ENH: simplify internal logic (remove a non-user facing class, InifixConf)
  • TYP: add mypy conf, add missing type annotations

Full Changelog: v0.11.2...v1.0.0

v0.11.2

05 Jan 10:30
357470e
Compare
Choose a tag to compare

What's Changed

  • BUG: fix formatting for files with only sections and comments (no parameters) by @neutrinoceros in #90

Full Changelog: v0.11.1...v0.11.2