Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSV reports (for master) #1117

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

CSV reports (for master) #1117

wants to merge 5 commits into from

Conversation

dkfellows
Copy link
Member

A version of the csv-reports branch that isn't tangled up in #1062 (sorry about that! 😊)

This PR is mainly about making more extensive use of Python's CSV writing module. The aim of that is to make more of our reported information easily readable from within Jupyter; that already renders CSV files much more nicely than plain text and many of our reports were distinctly tabular. The PR tames the Python code (which has some nasty internal aspects) using a context manager.

The old reports are not removed. And some of our reports are very bad fits for tabular reporting as they're much more tree structured in the information they're presenting. (I looked at reports produced by other parts of the stack, but these seemed to be the most convertible ones anyway.)

Also:

  • Nukes some pre-Python3.7 code in FecTimer
  • Adds FecDataView.get_run_dir_file_name() which does a pretty common pattern in one place instead of scattering it all over. (I've left the type annotations on that one; they're trivial and harmless.)

@dkfellows dkfellows added enhancement This adds a new feature reporting/provenance labels Sep 29, 2023
@dkfellows dkfellows added this to the 7.1.0 milestone Sep 29, 2023
@coveralls
Copy link

coveralls commented Sep 29, 2023

Coverage Status

coverage: 42.408% (+0.1%) from 42.293% when pulling 1b0ccfa on csv-reports-master into a209c35 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants