Skip to content

Releases: echemdb/unitpackage

0.11.2

15 Jan 20:12

Choose a tag to compare

Added:

  • Added unitpackage.electrochemistry.reference_electrodes which contains reference electrode data and a dataclass to interact with the data (_reference_electrodes), and a ReferenceElectrode object, which determining the shift of the potential between different reference scales.
  • Added Entry.add_offset which allows shifting the values of a specified column of the entry by a certain offset and tracking the information in the fields description.
  • Added EchmdbEntry.rescale_reference which allows shifting the potential scale onto another potential scale known to unitpackage.electrochemistry._reference_electrodes.

0.11.1

15 Dec 13:47

Choose a tag to compare

Removed:

  • Removed dependency clevercsv and used Python's csv instead.

0.11.0

12 Dec 14:53

Choose a tag to compare

Added:

Removed:

  • Removed support for Python 3.9.
  • Removed dependency on iteration_utilities.

0.10.1

20 Aug 20:33

Choose a tag to compare

Added:

  • Added property identifiers to Collection, returning a list of identifiers of the collection.
  • Added additional methods to collection.__getitem__(), allowing for creating new collections from existing collections by providing a list of identifiers (db["id1","id2"]), integers (db[0,2]) or simply a slice (db[2:3]). Additionally, entries can now be selected by their position in the collection (entry = db[3]).

Changed:

  • Changed collection.bibliography to a cached_property.

Fixed:

  • Fixed showing plotly plots in the documentation, by using plotly 5 in the workflow to build the documentation.

0.10.0

05 Aug 12:35

Choose a tag to compare

Added:

  • Added unitpackage.database.echemdb_entry.CVEntry and unitpackage.database.echemdb.EchemdbEntry, with specific functionalities for the echemdb data repository.
  • Added tests for Python 3.13.

Changed:

  • Changed metadata example keys to use camelCase for consistency with JSON naming conventions.
  • Use electrochemistry-data release 0.5.0 for remote data tests.
  • Changed upper version bound for plotly from "<6" to "<7".
  • Changed version bound for pybtex from ">=0.24,<0.25" to ">=0.25,<0.26".

Deprecated:

  • Deprecated unitpackage.cv.cv_entry.CVEntry and unitpackage.cv.cv_collection.CVCollection.

Removed:

  • Removed unused dependency filelock.

0.9.2

11 Jun 20:15

Choose a tag to compare

Changed:

  • Changed upper version bound for astropy from <=7 to <8.

0.9.1

12 Apr 11:05

Choose a tag to compare

Removed:

  • Removed unitpackage.local.collect_datapackage since it is identical to frictionless package = Package().

Fixed:

  • Fixed creating and saving entries containing upper case characters, which are converted to lowercase, to match the frictionless specifications.

0.9.0

24 Feb 20:29

Choose a tag to compare

Added:

Added entry.add_column which allows adding a column to an existing pandas dataframe and extends the Data Package fields with given units.

  • Added the property entry.mutable_resource, which is a virtual modifiable copy of the original resource excluding its metadata.
  • Added unitpackage.local.collect_resources, which collects all resources from a list of frictionless Data Packages.
  • Added collection.from_local_file to create a collection from the resources included in a Data Package (JSON).
  • Added validation to check for duplicate resource names upon creating a collection.
  • Added wheel upload on new release.

Changed:

  • Changed unitpackage.entry.Entry from being a frictionless Data Package into a frictionless Resource.
  • Changed unitpackage.collection.Collection from being a collection of frictionless Data Packages into a collection of frictionless Resources forming a Data Package.
  • Changed the virtual echemdb Resource into an entry.mutable_resource.
  • Changed unitpackage.local.create_df_resource to create a resource from an actual frictionless Resource instead of a frictionless Data Package.
  • Changed packages for development to be provided by pixi instead of conda directly.

Removed:

  • Removed argument resource_name in unitpackage.local.create_df_resource and all other instances where resources were named "echemdb".

Fixed:

  • Fixed parsing of arguments data and outdir for collection.from_remote downloading data from the default remote url.
  • Fixed breaking tests on GitHub (tests should be more stable now since we switched to pixi for locked versions of dependencies.)

Performance:

  • Improved loading collections via collection.from_local or collection.from_remote and entries via entry.from_local. In contrast to the previous version, dataframes are now only loaded when a method or property is called that requires access to the resource's data. This also increases the speed for filtering the data based on metadata predicates.

0.8.5

19 Dec 09:45

Choose a tag to compare

Added:

  • Added Entry.rename_fields, returning an entry with field names and dataframe column names.
  • Added the classmethod Entry._modify_fields that updates a list of fields, and allows keeping the original name.

0.8.4

08 Apr 15:53

Choose a tag to compare

Fixed:

  • Fixed entry.save, where the saved datapackages contained the echemdb resource.