HEPCloud / decisionengine

HEPCloud Decision Engine framework
Apache License 2.0
6 stars 26 forks source link

dummy source and test #538

Closed goodenou closed 2 years ago

goodenou commented 3 years ago

I have added a new module that creates an empty datablock to address https://github.com/HEPCloud/decisionengine_modules/issues/350.

The module takes in a single parameter "data_product_type" from the config file as shown here: "dummy_nersc_fom_source": { "module": "decisionengine.framework.modules.EmptySource", "name": "EmptySource", "parameters": { "data_product_type": "Nersc_Figure_Of_Merit", } },

I have tested the module by running a set of config files that Steve gave to me, and there were no errors related to the necessary datablocks.

codecov[bot] commented 3 years ago

Codecov Report

Merging #538 (5e8f9f2) into master (31b0f30) will increase coverage by 0.04%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #538      +/-   ##
==========================================
+ Coverage   83.89%   83.94%   +0.04%     
==========================================
  Files          47       48       +1     
  Lines        3080     3095      +15     
  Branches      430      432       +2     
==========================================
+ Hits         2584     2598      +14     
  Misses        463      463              
- Partials       33       34       +1     
Flag Coverage Δ
python-3.6 83.18% <100.00%> (+0.04%) :arrow_up:
python-3.9 83.40% <100.00%> (+0.11%) :arrow_up:
python-pypy-3.7 83.50% <100.00%> (+0.04%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...rc/decisionengine/framework/modules/EmptySource.py 100.00% <100.00%> (ø)
src/decisionengine/framework/dataspace/maintain.py 99.04% <0.00%> (-0.96%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 31b0f30...5e8f9f2. Read the comment docs.