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

Add payload2 feature #887

Merged
merged 1 commit into from
Nov 19, 2021
Merged

Add payload2 feature #887

merged 1 commit into from
Nov 19, 2021

Conversation

davidanthoff
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@lrennels lrennels left a comment

Choose a reason for hiding this comment

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

@davidanthoff looks good to me, I'd probably vote at some point for a name like payload_shallow or something ... but I'd have to think about what would be a good name :). This is very internal for now anyways so not too worried about it.

# This is a bit convoluted, but we want to make sure to exclude payload2 from the deepcopy
# call here
payload2 = sim_def.payload2
sim_def.payload2 = nothing
self.sim_def = deepcopy(sim_def)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just so I'm clear here, what we're doing is (1) deep copy the sim_def without payloads (2) add the payload and the payload2 (3) replace the payload in the sim_def with a deep copied version

@codecov
Copy link

codecov bot commented Nov 19, 2021

Codecov Report

Merging #887 (8d1e16e) into master (288c1e2) will decrease coverage by 0.04%.
The diff coverage is 70.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #887      +/-   ##
==========================================
- Coverage   84.28%   84.24%   -0.05%     
==========================================
  Files          40       40              
  Lines        3799     3808       +9     
==========================================
+ Hits         3202     3208       +6     
- Misses        597      600       +3     
Flag Coverage Δ
unittests 84.24% <70.00%> (-0.05%) ⬇️

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

Impacted Files Coverage Δ
src/mcs/mcs_types.jl 75.94% <70.00%> (-1.20%) ⬇️

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 288c1e2...8d1e16e. Read the comment docs.

@lrennels lrennels merged commit 8736488 into master Nov 19, 2021
@lrennels lrennels deleted the payload2 branch November 19, 2021 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants