A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Recent Releases of pygef

pygef - 0.11.1

This release contains only dependency updates.

What's Changed

Full Changelog: https://github.com/cemsbv/pygef/compare/0.11.0...0.11.1

Natural Resources - Soil and Land - Python
Published by tversteeg 19 days ago

pygef - 0.11.0

What's Changed

Full Changelog: https://github.com/cemsbv/pygef/compare/0.10.2...0.11.0

Natural Resources - Soil and Land - Python
Published by tlukkezen 7 months ago

pygef - 0.10.2

What's Changed

Full Changelog: https://github.com/cemsbv/pygef/compare/0.10.1...0.10.2

Natural Resources - Soil and Land - Python
Published by RDWimmers 8 months ago

pygef - 0.10.1

Full Changelog: https://github.com/cemsbv/pygef/compare/0.10.0...0.10.1

Natural Resources - Soil and Land - Python
Published by tversteeg over 1 year ago

pygef - 0.10.0

What's Changed

Full Changelog: https://github.com/cemsbv/pygef/compare/0.9.0...0.10.0

Natural Resources - Soil and Land - Python
Published by RDWimmers over 1 year ago

pygef - 0.9.0

What's Changed

Full Changelog: https://github.com/cemsbv/pygef/compare/0.8.4...0.9.0

Natural Resources - Soil and Land - Python
Published by RDWimmers over 1 year ago

pygef - 0.8.4

What's Changed

Full Changelog: https://github.com/cemsbv/pygef/compare/0.8.3...0.8.4

Natural Resources - Soil and Land - Python
Published by RDWimmers over 1 year ago

pygef - 0.8.3

What's Changed

Full Changelog: https://github.com/cemsbv/pygef/compare/0.8.2...0.8.3

Natural Resources - Soil and Land - Python
Published by RDWimmers over 1 year ago

pygef - 0.8.2

This release mainly fixes a bug encountered with type inferring of Polars DataFrames. Moreover, we've started running all our CI test jobs on three python versions: 3.9, 3.10 & 3.11.

Fixed

Full Changelog: https://github.com/cemsbv/pygef/compare/0.8.1...0.8.2

Natural Resources - Soil and Land - Python
Published by tlukkezen almost 2 years ago

pygef - 0.8.1

With this release, we set strict upper-bounds to the dependencies specifications. This resolves some issues we had with breaking changes in sub-dependencies. Furthermore, we updated the default major ticker to 0.5 meter and sort the table by depth.

We recommend everyone to use the new version.

Fixed

Added

Full Changelog: https://github.com/cemsbv/pygef/compare/0.8.0...0.8.1

Natural Resources - Soil and Land - Python
Published by RDWimmers almost 2 years ago

pygef - 0.8.0

The focus of 0.8.0 release is on addressing technical debt, modernizing our codebase, improving performance, and making it easier to contribute. Furthermore, we added support for BRO XML files for CPT and BHRgt objects.

To support BRO XML and GEF files we designed a DataClass that holds the information in a standardized format. The names of the properties in the DataClass as the column names of the DataFrame are similar to the BRO standaard naming. We also made the decision to freeze the DataClass as it holds only the parse data of the CPT or Bore file.

We believe that the chances we made resulted in more stable codebase as well an easier maintainability.

Breaking Changes

Instead of importing the Cpt or Bore object, you now import the read_cpt or read_bore functions:

- from pygef import Cpt
+ from pygef import read_cpt

- gef = Cpt("./my-file.gef")
+ gef = read_cpt("./my-file.gef")

The dataframe can now be accessed using the data attribute. Please note that we changed the column names of the DataFrame. The names are now linked to the BRO names:

- print(gef.df.head())
+ print(gef.data.head())

Property names have changed or return a different type, for example:

- gef.x
+ gef.standardized_location.x

- gef.zid
+ gef.delivered_vertical_position_offset

- gef.cpt_class
+ gef.quality_class.name

- gef.height_system
+ gef.delivered_vertical_position_datum.name

- gef.type_of_cone_penetration_test
+ gef.cpt_type

- gef.test_id
+ gef.alias

- gef.end_depth_of_penetration_test
+ gef.final_depth

Plotting has now been moved to its own function in its own module:

- gef.plot()
+ from pygef.plotting import plot_cpt
+
+ plot_cpt(gef)

Full Changelog: https://github.com/cemsbv/pygef/compare/0.7.4...0.8.0

What's Changed

Full Changelog: https://github.com/cemsbv/pygef/compare/0.7.4...0.8.0

Natural Resources - Soil and Land - Python
Published by tversteeg about 2 years ago

pygef - 0.8.0-alpha.5

Added

Fixed

Full Changelog: https://github.com/cemsbv/pygef/compare/0.8.0-alpha.4...0.8.0-alpha.5

Natural Resources - Soil and Land - Python
Published by tversteeg about 2 years ago

pygef - 0.8.0-alpha.4

What's Changed

  • add linting, remove old GEF functions, update docs by @RDWimmers in https://github.com/cemsbv/pygef/pull/290
  • drop support for python 3.7 and 3.8
  • update CPT and Bore figure
  • remove redundant code GEF parser

Full Changelog: https://github.com/cemsbv/pygef/compare/0.8.0-alpha.3...0.8.0-alpha.4

Natural Resources - Soil and Land - Python
Published by tversteeg about 2 years ago

pygef - 0.8.0-alpha.3

Fixed

  • Refactor folder structure to be src/-based by @tversteeg
  • Fix setuptools not packaging subdirectories by @tversteeg

Full Changelog: https://github.com/cemsbv/pygef/compare/0.8.0-alpha.2...0.8.0-alpha.3

Natural Resources - Soil and Land - Python
Published by tversteeg about 2 years ago

pygef - 0.8.0-alpha.2

Fixed

  • Build not packaging required files by @tversteeg

Full Changelog: https://github.com/cemsbv/pygef/compare/0.8.0-alpha...0.8.0-alpha.2

Natural Resources - Soil and Land - Python
Published by tversteeg about 2 years ago

pygef - 0.8.0-alpha

The focus of 0.8.0 release is on addressing technical debt, modernizing our codebase, improving performance, and making it easier to contribute. Furthermore, we added support for BRO XML files for CPT and BHRgt objects.

To support BRO XML and GEF files we designed a DataClass that holds the information in a standardized format. The names of the properties in the DataClass as the column names of the DataFrame are similar to the BRO standaard naming. We also made the decision to freeze the DataClass as it holds only the parse data of the CPT or Bore file.

Breaking Changes

Instead of importing the Cpt or Bore object, you now import the read_cpt or read_bore functions:

- from pygef import Cpt
+ from pygef import read_cpt

- gef = Cpt("./my-file.gef")
+ gef = read_cpt("./my-file.gef")

The dataframe can now be accessed using the data attribute. Please note that we changed the column names of the DataFrame. The names are now linked to the BRO names:

- print(gef.df.head())
+ print(gef.data.head())

Property names have changed or return a different type, for example:

- gef.x
+ gef.standardized_location.x

- gef.zid
+ gef.delivered_vertical_position_offset

- gef.cpt_class
+ gef.quality_class.name

Plotting has now been moved to its own function in its own module:

- gef.plot()
+ from pygef.plotting import plot_cpt
+
+ plot_cpt(gef)

Fixed

Full Changelog: https://github.com/cemsbv/pygef/compare/0.7.4...0.8.0-alpha

What's Changed

Full Changelog: https://github.com/cemsbv/pygef/compare/0.7.4...0.8.0-alpha

What's Changed

Full Changelog: https://github.com/cemsbv/pygef/compare/0.7.4...0.8.0-alpha

Natural Resources - Soil and Land - Python
Published by tversteeg about 2 years ago

pygef - 0.7.4

Fixed

Full Changelog: https://github.com/cemsbv/pygef/compare/0.7.3...0.7.4

Natural Resources - Soil and Land - Python
Published by tlukkezen over 2 years ago

pygef - 0.7.3

Fixed

New Contributors

Full Changelog: https://github.com/cemsbv/pygef/compare/0.7.2...0.7.3

Natural Resources - Soil and Land - Python
Published by tversteeg almost 3 years ago

pygef - 0.7.2

Fixed

New Contributors

Full Changelog: https://github.com/cemsbv/pygef/compare/0.7.1...0.7.2

Natural Resources - Soil and Land - Python
Published by tversteeg over 3 years ago

pygef - 0.7.1

Removed

Fixed

New Contributors

Full Changelog: https://github.com/cemsbv/pygef/compare/0.6.3...0.7.1

Natural Resources - Soil and Land - Python
Published by martinapippi over 3 years ago

pygef - 0.7.0

Breaking Change

  • Removed the grouping mechanism, use CEMS gef-model for a better grouping mechanism instead (contact us for access)

Removed

  • do_grouping & min_thickness arguments in Cpt
  • pygef.grouping module

Natural Resources - Soil and Land - Python
Published by tversteeg over 3 years ago

pygef -

Fixed

  • Grouping by using pandas again instead of polars (#108, #130)

Natural Resources - Soil and Land - Python
Published by tversteeg over 3 years ago

pygef - 0.6.2

Fixed

  • Resources bug

Natural Resources - Soil and Land - Python
Published by martinapippi over 3 years ago

pygef - 0.6.1

Added

  • Parsing for XML boreholes

Natural Resources - Soil and Land - Python
Published by martinapippi over 3 years ago

pygef - 0.6.0

Breaking Change

  • The previous attributes and methods are now available via the classes Cpt and Bore

Natural Resources - Soil and Land - Python
Published by martinapippi over 3 years ago

pygef - 0.5.3

Added

  • ParseGEF.s which contains the raw GEF string

Natural Resources - Soil and Land - Python
Published by martinapippi over 3 years ago

pygef - 0.5.2

Fixed

  • Parsing of edge cases in GEF files

Natural Resources - Soil and Land - Python
Published by martinapippi over 3 years ago

pygef -

Fixed

  • Parsing of newline characters for DOS based files (\r\n)
  • CSV data blocks with padded spaces

Natural Resources - Soil and Land - Python
Published by tversteeg over 3 years ago

pygef - 0.5.0

Breaking Changes

  • The ParseGEF.df object is now a polars dataframe instead of a pandas dataframe, a pandas dataframe can be accessed by calling .to_pandas() on the polars dataframe (#70)
  • Soil type dataframe columns and other inconsistent casings have been renamed (the old ones can still be used with the old_column_names flag):
    • .df["G"] -> .df["gravel_component"]
    • .df["S"] -> .df["sand_component"]
    • .df["C"] -> .df["clay_component"]
    • .df["L"] -> .df["loam_component"]
    • .df["P"] -> .df["peat_component"]
    • .df["SI"] -> .df["silt_component"]
    • .df["Remarks"] -> .df["remarks"]
    • .df["elevation_with_respect_to_NAP"] -> .df["elevation_with_respect_to_nap"]

Added

  • old_column_names flag to ParseCPT() and ParseGEF() for using the deprecated column names, see breaking change section above

Changed

  • Performance has overall been greatly improved by using polars instead of pandas and by parsing the headers with a bespoke rust library

Natural Resources - Soil and Land - Python
Published by tversteeg over 3 years ago

pygef - 0.4.3

Changed

  • Improve performance by allowing regexes to be cached

Natural Resources - Soil and Land - Python
Published by tversteeg over 3 years ago

pygef -

Natural Resources - Soil and Land - Python
Published by martinapippi almost 4 years ago

pygef - 0.4.1

Natural Resources - Soil and Land - Python
Published by martinapippi almost 4 years ago