PyUtilib / pyutilib

A collection of general Python utilities, including logging and file IO, subprocess management, plugin systems, and workflow management.
BSD 3-Clause "New" or "Revised" License
34 stars 20 forks source link

Update ConfigValue display() to produce prettier output #76

Closed jsiirola closed 4 years ago

jsiirola commented 4 years ago

Fixes: N/A

Summary/Motivation:

Update ConfigBlock display() so that complex data types (like pyomo's _PathData objects) are converted to strings before printing them out (instead of dumping them as yaml). This should also speed up the ConfigBlock system, as walking the data hierarchy no longer generates strings.

Changes proposed in this PR:

Legal Acknowledgement

By contributing to this software project, I agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.
coveralls commented 4 years ago

Coverage Status

Coverage decreased (-1.02%) to 61.055% when pulling 64db3a8a09c0107dfa96bd13f3fbb216badd745e on config-display-update into 5763915b62477c911cba2eae4de227a97171fe8d on master.

codecov-io commented 4 years ago

Codecov Report

Merging #76 into master will increase coverage by 0.05%. The diff coverage is 87.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #76      +/-   ##
==========================================
+ Coverage   62.85%   62.91%   +0.05%     
==========================================
  Files          87       87              
  Lines        8777     8804      +27     
==========================================
+ Hits         5517     5539      +22     
- Misses       3260     3265       +5
Impacted Files Coverage Δ
pyutilib/misc/config.py 94.28% <87.75%> (-0.53%) :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 5763915...64db3a8. Read the comment docs.