Add EChemDBReader for reading digitized CV data from echemdb.org#194
Merged
Conversation
…compatibility - Switched to actions/setup-python@v4 - Explicitly mapped Python versions to compatible OS using matrix.include - Ensured Python 3.7 runs only on ubuntu-22.04 since ubuntu-latest (24.04) drops support
- Supports fetching latest version from PyPI - Selectively extracts only required files from release zip - Caches data locally using versioned directories - Parses metadata and bibtex citation - Builds Measurement with alias mapping for CV compatibility
…on with EChemDBReader
…on with EChemDBReader
…-derived aliases; resolve potential issue of circular alias lookup
ScottSoren
requested changes
Aug 19, 2025
ScottSoren
left a comment
Member
There was a problem hiding this comment.
Fantastic work, @FrederikLizakJohansen !
It works well on my computer and all the code fits well with ixdat
I've requested a few additions to comments and docstrings, plus very minor changes of code in the demo script and the reader.
…and Ctrl-C support
…nloads with errormsg
…al demo for users
…mdb metadata, and bib
…mdb metadata, and bib
Member
|
Looks great! Thanks for the contribution :) |
|
Just found out about this integration. Nice to see the reuse of the database. :) It seems though that you write some code that might be covered by our API. Maybe that simplifies a bit the data extraction. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a new
EChemDBReaderclass to support loading CV reference data from echemdb.org, a curated open-access repository for digitized electrochemical datasets (digitized from SVG extractions). This data is versioned and distributed via GitHub releases and PyPI metadata.This PR also includes:
get_default_cache_dir) in tools.pyKey Features
EChemDBReaderclass"alves_2011_electrochemistry_6010")version="0.4.1")potential,current)TimeSeries+ValueSeriesusing schema. Each read-call fetches a single CV.Demo script (
demo_echemdb_reader.py)Additional Improvements
Tools
get_default_cache_dir()(insrc/ixdat/tools.py)LOCALAPPDATA~/Library/Caches$XDG_CACHE_HOMEor~/.cacheEChemDBReaderto store cached datasetsCI / Testing
setup-pythoncompatibility issuesFor Review
src/ixdat/readers/echemdb.pydevelopment_scripts/reader_demonstrators/demo_echemdb_reader.pysrc/ixdat/tools.py-->get_default_cache_dir()