open-sdg / sdg-build

Python package to convert SDG-related data and metadata between formats
MIT License
6 stars 22 forks source link

Include class name in context for alterations #323

Closed brockfanning closed 1 year ago

brockfanning commented 1 year ago

Data and metadata alterations are applied to particular inputs, but in Open SDG there are often many inputs. For example there might be a CSV data input, an SDMX metadata input, a YAML indicator configuration input, etc. By including the class name of the input in the context object, we can give people a more robust way to target a particular input.

codecov[bot] commented 1 year ago

Codecov Report

Merging #323 (755073f) into 2.1.0-dev (250b6a3) will not change coverage. The diff coverage is n/a.

@@            Coverage Diff             @@
##           2.1.0-dev     #323   +/-   ##
==========================================
  Coverage      70.32%   70.32%           
==========================================
  Files             74       74           
  Lines           4536     4536           
==========================================
  Hits            3190     3190           
  Misses          1346     1346           
Impacted Files Coverage Δ
sdg/inputs/InputBase.py 76.47% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

brockfanning commented 1 year ago

This change is a harmless addition and does not need manual testing, so I'll go ahead and merge based on the passing tests.