Releases: echemdb/unitpackage
Releases · echemdb/unitpackage
0.11.2
Added:
- Added
unitpackage.electrochemistry.reference_electrodeswhich contains reference electrode data and a dataclass to interact with the data (_reference_electrodes), and aReferenceElectrodeobject, which determining the shift of the potential between different reference scales. - Added
Entry.add_offsetwhich 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_referencewhich allows shifting the potential scale onto another potential scale known tounitpackage.electrochemistry._reference_electrodes.
0.11.1
Removed:
- Removed dependency clevercsv and used Python's csv instead.
0.11.0
Added:
- Added modules from
echemdb-converters(https://github.com/echemdb/echemdb-converters v4.0.1) as modules in unitpackage withinunitpackage.loaders. - Added support for Python 3.14.
Removed:
- Removed support for Python 3.9.
- Removed dependency on iteration_utilities.
0.10.1
Added:
- Added property
identifierstoCollection, 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.bibliographyto 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
Added:
- Added
unitpackage.database.echemdb_entry.CVEntryandunitpackage.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.CVEntryandunitpackage.cv.cv_collection.CVCollection.
Removed:
- Removed unused dependency
filelock.
0.9.2
Changed:
- Changed upper version bound for astropy from <=7 to <8.
0.9.1
Removed:
- Removed
unitpackage.local.collect_datapackagesince it is identical to frictionlesspackage = Package().
Fixed:
- Fixed creating and saving entries containing upper case characters, which are converted to lowercase, to match the frictionless specifications.
0.9.0
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_fileto 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.Entryfrom being a frictionless Data Package into a frictionless Resource. - Changed
unitpackage.collection.Collectionfrom being a collection of frictionless Data Packages into a collection of frictionless Resources forming a Data Package. - Changed the virtual
echemdbResource into anentry.mutable_resource. - Changed
unitpackage.local.create_df_resourceto 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_nameinunitpackage.local.create_df_resourceand all other instances where resources were named "echemdb".
Fixed:
- Fixed parsing of arguments
dataandoutdirforcollection.from_remotedownloading 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_localorcollection.from_remoteand entries viaentry.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
Added:
- Added
Entry.rename_fields, returning an entry with field names and dataframe column names. - Added the classmethod
Entry._modify_fieldsthat updates a list of fields, and allows keeping the original name.
0.8.4
Fixed:
- Fixed
entry.save, where the saved datapackages contained theechemdbresource.