Changelog#
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased#
0.13.0 - 2022-07-10#
Bump development status to Development Status :: 3 - Alpha on PyPi.
Switched to the PyData Sphinx theme and automatic summaries (doesn’t
seem) to work for classes exposed through __init__-files.
Changed#
Name of
OfflineErrorchanged toConnectionStatusError.Moved
Cardinalityto themappingnamespace.Move
utility.perfup one level.Swapped generic
TypeVarorder forIdTypeandSourceTypeto match the name -> source -> ID hierarchy
Added#
Implement override functions in
Mapper.apply.Also: Partial implementation of override functions for name-to-source mapping in
Translator.translate
Implement reverse translations. Added
reverseargument toTranslator.translateto translate from translations back to IDs.An option
maximal_untranslated_fractionto raise an error if translation fails for too many IDs inTranslator.translate.Make it possible to initialize
Fetchers from arbitrary packages inTranslator.from_config.Make it possible configure
ScoreFunctions,FilterFunctions andAliasFunctions from arbitrary modules (still defaults to package functions).The
py.typedmarker (PEP-561 compliance).Additional
types-modules for typehint imports
Fixed#
Numerous doc fixes
0.12.2 - 2022-07-04#
Fixed#
Fixed chained alias functionality for
HeuristicScore
0.12.1 - 2022-07-04#
Botched release.
0.12.0 - 2022-07-03#
Changed#
Changed
like_database_tablefrom score function to alias functionThread safety: Change ‘candidates’ from init/property to
Mapper.applyargRemove
store/restoreserialize argument. Default path is now None forTranslator.store.
0.11.1 - 2022-07-02#
Documentation and docstring fixes.
Added#
A TOML Configuration section to docs
0.11.0 - 2022-07-01#
Added#
Convenience functions for (de)serializing
Translatorinstances.
Fixed#
Broken docs.
0.10.2 - 2022-07-01#
Try to restore the translation API docs.
0.10.1 - 2022-06-30#
Fixed#
The
Translatorretrieving incorrect sources in offline mode
0.10.0 - 2022-06-30#
Refactor scoring functions.
Added#
The
HeuristicScoreclass, which enables filter-based short-circuiting and alias heuristics for score functions.
Removed#
The
filter_functions.score_with_heuristicsfunction; replaced by the more generalHeuristicScoreclass.
Changed#
Make
translation.factorymodule publicRename
MappingScoreFunction->ScoreFunctionAdd a third mandatory
contextparameter to all mapping functions. Thesourceargument has been removed.
Fixed#
Fix handling logging of duplicate source discovery in MultiFetcher
Allow empty fetching section in main config file when extra_fetchers are given
0.9.0 - 2022-06-28#
Added#
Short-circuiting logic to
filter_functions.score_with_heuristics
Fixed#
Some scoring stuff and related logging.
0.8.1 - 2022-06-28#
Fixed#
Fix unwanted case-sensitivity in
filter_functions.score_with_heuristicsAllow user-defined cardinality in config files
Missing
Cardinality.parse(str)case
0.8.0 - 2022-06-28#
Added#
Support for fetching using multiple fetchers using the
MultiFetcherclass (#44)The
fetching.typesmodule.The
Fetcherinterface. The oldFetcherclass in now calledAbstractFetcher.The
action_level.ActionLevelenum type.
Changed#
Refactor score and filter functions (
mapping-module) to increase flexibility and cover more use cases (#57, #58).
0.7.0 - 2022-06-21#
Added#
The
InheritedKeysDictclass.Integration of
Mapperin theFetcherfor programmatic placeholder-mapping.Filtering logic for
MapperThe
plottting.pi_ticks-function to plot an (X-)axis in terms of PI.Dvdrental testcase and docs running against a docker DB (not in CI)
Changed#
More plotting functions
Improved dependency management. Added new dependency groups
translationandplottingto be installed as extras
0.6.0 - 2022-06-17#
Added#
Copy method for
Translator.copy(**overrides).
Changed#
Switch from YAML to TOML for
Translator.config.
0.5.0 - 2022-06-14#
A large number of changes, bugfixes and stability improvements. Only the most important ones are listed here.
Added#
Implement shared default translations (#31)
Implement in-place translation for sequences (
list,pandas.Series,numpy.array)Allow alternative use of translation format with an ID placeholder, even if the main doesn’t include it
Add an option to run
Translator.storewith explicit data to cacheImplement alternative format for unknown IDs
Changed#
SqlFetcher: Break out potentially expensive operations into overridable methods
Replace suffix
_log_level->_levelinbasic_config
Fixed#
Fix name extraction for
pandas.Series
Added#
Dict utility methods in
rics.utility.collections
0.4.0 - 2022-03-24#
Added#
The
rics.utility.plottingmodule
0.3.2 - 2022-03-17#
Added#
The
Translator.fetchfunction for retrieving IDs
Fixed#
Revert bad commit
Fix an issue in
PandasFetcherSome
SqlFetcherwarning messages
0.3.1 - 2022-03-17#
Fixed#
Readme links.
0.3.0 - 2022-03-17#
Changed#
Update
get_local_or_remote- remote root mandatory, default to cwd for local root
Added#
Make it possible to use predicates for
namesandignore_nameinTranslator.translateAdd
Translator.map_to_sourcesto get name-to-source mapping without translating data
Fixed#
Translation using formats which don’t include the
idplaceholder
0.2.0 - 2022-03-15#
Changed#
Update
Fetcherreturn format from dict-of-lists to matrix (performance optimization)
Added#
Database table discovery (gathers metadata like size and columns) for
SqlFetcherAdd selection logic (used to always fetch everything) for
SqlFetcherImplement translations of
pandas.SeriesThe
rics.utility.perfpackage for multivariate (dataxfunctions) performance testing
Fixed#
Fix fetching only required placeholders in
SqlFetcher
0.1.0 - 2022-03-12#
First release on PyPI!
Added#
The
rics.utilitypackage for various common operationsThe
rics.translationpackage suite for translating IDs into human-readable labelsThe
rics.mappingpackage for linking elements in multiple directionsThe
rics.cardinalitypackage; enum types for1:1,1:N,N:1, andM:N