Skip to content

Releases: neutrinoceros/inifix

v4.1.0

06 Feb 13:37
1e39991
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.0.0...v4.1.0

v4.0.0

30 Jan 16:56
4e858f8
Compare
Choose a tag to compare

What's Changed

  • TST: use requirement files instead of optional dependencies for tests and type checking by @neutrinoceros in #141

Full Changelog: v3.1.0...v4.0.0

v3.1.0

08 Jan 16:51
b53755d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.0...v3.1.0

v3.0.0

24 May 10:36
c4cd2b7
Compare
Choose a tag to compare

What's Changed

This release contains a small, yet breaking change: in previous versions of inifix, t and f were read as booleans. This feature was never documented and was never supported in Idefix. Meanwhile, Idefix (dev) now supports reading yes and no as booleans, so inifix will now also automatically parse these special strings to booleans.

  • ENH: add special rules to parse 'yes' and 'no' as booleans (follow Idefix dev) by @neutrinoceros in #114

Full Changelog: v2.3.0...v3.0.0

v2.3.0

30 Apr 22:36
63a1dde
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.2.1...v2.3.0

v2.2.1

30 Apr 08:07
4daea6d
Compare
Choose a tag to compare

What's Changed

  • BUG: fix a regression (inifix 2.2.0) where inifix.dump was able to write to a file even if user doesn't have permission to by @neutrinoceros in #110

Full Changelog: v2.2.0...v2.2.1

v2.2.0

29 Apr 21:45
10f340d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.1.2...v2.2.0

v2.1.2

28 Apr 13:43
bf3b827
Compare
Choose a tag to compare

What's Changed

  • BUG: fix a bug where formatting would affect spacing within quoted str values
  • BUG: fix a bug where strings containing spacing would be dumped without correct quotes,
    making them appear as multiple separate values
  • BUG: fix a bug where special strings 'true', 't', 'false' and 'f' would decay to boolean after two parsing cycles
  • BUG: fix import * for inifix.io (add loads and dumps)

by @neutrinoceros in #107

Full Changelog: v2.1.1...v2.1.2

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