-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Restructure code to remove the single_packet_seed field #1926
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1926 +/- ##
=======================================
Coverage 58.74% 58.75%
=======================================
Files 70 70
Lines 7847 7841 -6
=======================================
- Hits 4610 4607 -3
+ Misses 3237 3234 -3
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Before a pull request is accepted, it must meet the following criteria:
|
@@ -5,7 +5,6 @@ definitions: | |||
title: 'Damped Convergence Strategy' | |||
type: object | |||
additionalProperties: false | |||
properties: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a relevant bugfix to this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not exactly. But while working on this PR I saw this small error and fixed it. Do you think I should put this in a separate commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. We prefer to limit PRs to fix one item at a time whenever possible.
import os | ||
import numba | ||
import sys | ||
import yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tried running this script? Does it still work, and did it work before your changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested the new script and it works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before the changes where made, the python script needs some argument for the single_packet_seed
in the yaml file. But there is no documentation on the valid values that can passed to the python script. Also the line SEED = eval(sys.argv[1].split("=")[1])[0]
is quite confusing. Could you provide a valid argument that can be passed to the script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the argument is intended to be something like seed=1234
based on the syntax, but if the script runs then it's okay.
b828bb8
to
955a3dc
Compare
*beep* *bop* Hi, human. I'm the @tardis-bot and couldn't find your records in my database. I think we don't know each other, or you changed your credentials recently. Please add your name and email to In case you need to map an existing alias, follow this example. |
@andrewfullard I have removed the irrelevant bugfix and updated the PR. Please have a look at the changes |
Description
Restructure the code to remove the
single_packet_seed
field in code, yml and documentation.Motivation and context
Fixes #1902 . The
single_packet_seed
is creating some unexpected bugsHow has this been tested?
pytest tardis
Examples
Type of change
Checklist