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

minor fixes and cleanup #596

Merged
merged 8 commits into from
May 23, 2022
Merged

minor fixes and cleanup #596

merged 8 commits into from
May 23, 2022

Conversation

bhazelton
Copy link
Member

@bhazelton bhazelton commented May 6, 2022

Description

While working on adding support for handling Exception messages passed from hera_corr_cm, I found a few things that needed to be fixed/cleaned up. There has since been work to eliminate those from the output of hera_corr_cm, so this doesn't include that support.

I also added some other cleanup items from our issues:

  • update the PR template to include stuff about modifications of redis structure
  • add katportalclient as an optional dependency
  • remove RTPStatus table related code (but do not update schema because we want to keep the table on site)

Motivation and Context

fixes #586
fixes #543

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Schema change (any change to the SQL tables)
  • New feature without schema change (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Version change
  • Build or continuous integration change
  • Other

Checklist:

Other:

  • My code follows the code style of this project.
  • I understand the updates required onsite (detailed in the readme) and I will make those
    changes when this is merged. None required
  • Unit tests pass on site (This is a critical check, CI can differ from site).
  • I have updated the CHANGELOG.

@codecov
Copy link

codecov bot commented May 6, 2022

Codecov Report

Merging #596 (adc1a81) into main (a4ca400) will increase coverage by 0.16%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #596      +/-   ##
==========================================
+ Coverage   97.77%   97.93%   +0.16%     
==========================================
  Files          35       35              
  Lines        5114     5090      -24     
==========================================
- Hits         5000     4985      -15     
+ Misses        114      105       -9     
Impacted Files Coverage Δ
hera_mc/__init__.py 96.34% <100.00%> (+9.97%) ⬆️
hera_mc/correlator.py 99.70% <100.00%> (ø)
hera_mc/mc_session.py 99.66% <100.00%> (-0.01%) ⬇️
hera_mc/rtp.py 100.00% <100.00%> (ø)

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 a4ca400...adc1a81. Read the comment docs.

if isinstance(self_c, int):
if self_c != other_c:
print("column {col} is int, values are not equal".format(col=c))
print(f"column {c} is int, values are not equal")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should change the looping variable from c to, say, col.

Copy link
Member

@plaplant plaplant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks @bhazelton!

@plaplant plaplant merged commit 03f683e into main May 23, 2022
@plaplant plaplant deleted the cleanup branch May 23, 2022 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add katportalclient as an optional dependency remove rtp_status table from SQL alchemy code
3 participants