Releases: echemdb/svgdigitizer
Releases · echemdb/svgdigitizer
0.12.0
0.11.0
Added:
- Improved the documentation with a large number of usage examples for the CLI, API and SVG annotation.
Fixed:
- Upgraded dependency on vulnerable version of pillow, see GHSA-j7hp-h8jx-5ppr. This possibly leads to an incompatibilities of
svgdigitizer
with Macos.
0.10.0
Added:
- Added CLI command
svgdigitzer figure
which allows creating a datapackage from a figure with units on the axis.
Changed:
- Changed structure of the output frictionless datapackage. The metadata are now included as custom key in the resource instead of being a top level key. Moved the "bibliography" key from top level to
metadata.source
.
Removed:
- Removed flag
--package
from the CLI and create datapackages by default.
0.9.1
Added:
- Digitizing with flag
--bibliography
creates a "bibliography key, which is an empty string when no citation key is given inmetadata["source"]["citation key"]
or no BIB file with the given citation key is available.
0.9.0
Added:
- Added flag
--citation
to the click commandcv
, which includes the content of a BIB file as bibtex string in a descriptor in the datapackage. The name to the BIB file must be provided in the metadata inmetadata['source']['bib']
.
0.8.0
Added:
- Added module
svgdigitizer.svgfigure.SVGFigure
to digitize custom figures (which are not CVs.) - Added assertions to
svgdigitizer.electrochemistry.cv.CV
, such that only E or U (I or j) labels are allowed on the x-axis (y-axis). - Added
scan_rate_labels
tosvgdigitizer.svgfigure
, returning the labels in the SVG with a scan rate. - Added possibility to reconstruct a time axis, when a scan rate is provided in the plot, who's units match those of the x-axis.
- Added keyword
measurement_type
tosvgdigitizer.svgfigure.SVGFigure
, which will be added to the metadata. - Added keyword
force_si_units
tosvgdigitizer.svgfigure.SVGFigure
, which allows transformation of a figure with units into SI units. - Added flag
--si-units
to thecv
command in the command line interface.
Changed:
- Changed
svgdigitizer.svgplot.SVGplot.schema
tosvgdigitizer.svgplot.SVGplot.figure_schema
.
Removed:
- Removed the following methods and properties from
svgdigitizer.electrochemistry.cv.CV
which were also not transferred tosvgdigitizer.svgfigure.SVGFigure
:voltage_dimension
,current_dimension
,_add_voltage_axis
, and_add_current_axis
.
Fixed:
- Fixed detection of
simultaneous measurement
inelectrochemistry.cv.CV
.
0.7.0
Added:
- Added custom exception classes to be more specific when errors are found in the input. Also fixes linter warnings with
pylint
>2.16.
Changed:
- Upgraded to frictionless 5.5.
- Changed formatting of JSON metadata files. A newline is now added automatically at the end of the file.
- Changed output format of JSON (datapackages) to produce indented JSON.
Removed:
- Removed
__main__.py
as the entrypoint. As a result,python -m svgdigitizer
does not invoke the digitizer anymore. The digitizer can still be invoked withsvgdigitizer
once installed.
Fixed:
- Fixed detection of
simultaneous measurement
inelectrochemistry.cv.CV
. - Fixed the alphabetical order of the dependencies in the environment.yml.
- Fixed doctesting of the command line interface, by moving the content from
__main__.py
toentrypoint.py
. - Fixed handling of unicode characters when writing JSON files. Unicode characters are now written as UTF-8 characters without escaping.
0.6.1
Fixed:
- Fixed garbage collection of instances with cached properties.
- Fixed an incompatibility of frictionless & click. (#152)
- Declared dependency on Python 3.9 when installing from PyPI (we use functools.cache which is not available before.)
- Restored changelog template.
- Fixed
svgplot.scaling_factors
such that scaling factors are now determined for any kind of axis dimension (so far only for axis labeledx
ory
). - Fixed broken links in the documentation.
- Fixed Github workflow files.
- Fixed doctests according to module updates.
0.6.0
Added:
- Added a short documentation to the package svgdigitizer with some very basic usage examples with the CLI and API.
- Added Python version 3.9 as a requirement to setup.py and environment.yaml.
Removed:
- Removed class method
svgdigitizer.electrochemistry.cv.CV.get_axis_unit
.
0.5.0
Added:
- Added a property
schema
tosvgplot.SVGPlot
, describing the data extracted from the plot. - Added a property
figure_schema
toelectrochemistry.cv.CV
, containing the original figure axis properties. - Added a property
data_schema
toelectrochemistry.cv.CV
, containing the axis properties of the propertyelectrochemistry.cv.CV.df
. - Added
voltage_dimension
andcurrent_dimension
toelectrochemistry.cv.CV
, providing the dimension of the voltage and the current.
Changed:
- Changed
electrochemistry.cv.CV
such that it only accepts SVGs where the labels on one axis are eitherU
orE
(V, mV, ...) and another axis areI
(A, mA, ...) orj
(A / cm2, uA / m2, ...). - Changed
rate
toscan_rate
inelectrochemistry.cv.CV
.
Removed:
- Removed
axis_properties
andx_label
fromelectrochemistry.cv.CV
.