Releases: echemdb/unitpackage
Releases · echemdb/unitpackage
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_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 anentry.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
inunitpackage.local.create_df_resource
and all other instances where resources were named "echemdb".
Fixed:
- Fixed parsing of arguments
data
andoutdir
forcollection.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
orcollection.from_remote
and 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_fields
that updates a list of fields, and allows keeping the original name.
0.8.4
Fixed:
- Fixed
entry.save
, where the saved datapackages contained theechemdb
resource.
0.8.3
Fixed:
- Fixed saving entries with
date
anddatetime
objects.
0.8.2
Fixed:
- Fixed creation of fields, when not all fields were provided to
local.create_unitpackage
. - Fixed creating an entry from the parent directory with
Entry.from_csv
.
0.8.1
Fixed:
- Fixed binder configuration files and links.
- Upgraded to pandas version 2.
0.8.0
Added:
- Added 'entry.save' which creates a unitpackage, i.e., a CSV file and a JSON file, in the directory
outdir
. - Added 'collection.save_entries' saves the entries of this collection using
entry.save
. - Added
Collection.from_local
, creating a collection from local datapackages. - Added
Collection.from_remote
, creating a collection from remote datapackages collected from a url containing a ZIP. - Added
Entry.from_local
, loading an entry from a local datapackage. - Added
Entry.from_csv
, creating an entry from a CSV and optionally allows adding metadata to the entry and modifying the field properties. - Added
Entry.from_df
, creating an entry from a pandas dataframe and optionally allows adding metadata to the entry and modifying the field properties.
Changed:
- Changed default url to collect datapackages to assets in https://github.com/echemdb/electrochemistry-data/releases.
- Changed loading echemdb data, using
Collection.from_remote()
instead ofCollection()
. - Changed
Entry.create_examples
to load pre-defined datapackages instead of generating datapackges from SVGs with thesvgdigitizer
.
Removed:
- Removed
svgdigitizer
as dependency used in automated tests. - Removed
Entry._digitize_example
, used to create datapackages for automated test.
Fixed:
- Fixed the description of the project in the
setup.py
.
0.7.1
Fixed:
- Fixed content of the Changelog to indicate that
unitpackage
originates from https://github.com/echemdb/echemdb.
0.7.0
Added:
- Added .
Changed:
- Changed .
Deprecated:
- Deprecated .
Removed:
- Removed .
Fixed:
- Fixed
entry.rescale
which returned an erroneous entry.
Performance:
- Improved .