Skip to content

0.8.0

Compare
Choose a tag to compare
@tversteeg tversteeg released this 15 Mar 09:58
· 65 commits to master since this release

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: 0.7.4...0.8.0

What's Changed

Full Changelog: 0.7.4...0.8.0