-
Notifications
You must be signed in to change notification settings - Fork 73
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
Added timestamp calculation to detsim city #778
Conversation
I have left the modifications of the names of the output files for each detsim test in a different commit at the request of @mmkekic. |
cecf8f6
to
adc116d
Compare
20b649f
to
13a779a
Compare
The tests are failing. It is not immediately obvious to me that the failure is spurious.
|
... and please rebase on top of #783 as soon as it is merged, so that we get clearer test error reporting. |
Is there any reason why this PR should not be reviewed and merged? |
#783 has been merged. Please rebase. |
8a3c796
to
4959384
Compare
I should clear the commit history a bit. Then, can we merge it? |
This is the warning message I get when running the function in a python shell:
Shouldn't we add
|
Yes, but there's no point in doing that until you have an approving review ... UNLESS (and it's a very important 'unless') cleaning up history will help the reviewers understand what you have done. Don't hesitate to ask for help with the cleaning, if you need it.
I'm not the best person to answer that question. You should probably ask for a review (using the buttons/links on the right, near the top of the PR page) from the people you consider most familiar with the issue you are resolving. |
Good idea, I add that now |
Well reviewer @gondiaz has already been assigned and it seems he is mostly happy with the changes.
I think this is a good idea, that way the warning will point to the function calling |
Okay, thank you @jacg |
@gondiaz please formally approve once you are happy, so that it's clear when we can merge. [@carmenromo You should start thinking about training a successor for the role of merge-master] |
Why? Are you not happy with me? |
The PR will be ready after history rewriting/squashing. The commits should be similar to:
Note that you usually start with a past tense at the start of commit messages, change it to present. |
Very happy!
I'm sure that there are many who can merge, but far fewer are aware of the standards of merge commits we expect in IC. Also remember that the role of merge-master serves two purposes: the idea is that some junior contributor
I think that you're waaaaay past needing point 1 for yourself. If there are any newish team members who would like a little bit of additional responsibility, or an opportunity to get a bit more comfortable with Git, then step forward. Job description: merge approved PRs as soon as they are ready, following the merge commit style that we have established in IC. Sometimes PRs are merged by senior people involved, but sometimes they rush on to other things. We need someone who will make sure that approved PRs don't stay unmerged for more than 24h (prefereably 24 minutes :-) |
Nice! I see and I fully agree. Do you have someone in mind? |
Strictly speaking it's the imperative mood, rather than present tense: Do this, fix that, remove the other ... Some people find it helpful to check whether the commit title completes a sentence starting with something like "Including this commit will ..." For example: Including this commit will ... fix the bug that cost us the Nobel Prize |
Nope. I have no idea who is lurking in the background, how they feel about their relationship to the project etc. etc. ... maybe, after the pandemic is over and I meet some of the new people ... |
@halmamol has volunteered! |
What about Miryam?
… On 6 Apr 2021, at 18:19, Jacek Generowicz ***@***.***> wrote:
Do you have someone in mind?
Nope. I have no idea who is lurking in the background, how they feel about their relationship to the project etc. etc.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#778 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB5SID6AZ43PSVZVSRQJ6IDTHMYANANCNFSM4ZI265SQ>.
|
Ja! The usual suspects! @halmamol gets the job!
… On 6 Apr 2021, at 18:22, carmenromo ***@***.***> wrote:
@halmamol <https://github.com/halmamol> has volunteered!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#778 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB5SID4GS4LPQDQQIEG4TFLTHMYM3ANCNFSM4ZI265SQ>.
|
If @MiryamMV wants I can teach both and they can agree as I did with @bpalmeiro. |
Hi @halmamol, I'm sorry, I don't know who you are. I hope that the coronavirus will allow us to remedy this in the not too distant future. In the meantime don't hesitate to reach out to me if you want any help or assistance, though I am confident that @carmenromo will be able to get you up to speed without any trouble. |
Hi @MiryamMV, My last message applies to you too! |
Sorry @MCruces-fz ... we seem to have hijacked your PR's conversation to discuss the merge-master role. @carmenromo, @halmamol, @MiryamMV I'll refrain from merging #784 (which is still waiting for @jmbenlloch's approval, but should be ready), to leave you with plenty of material for practice. Please merge that one before any of the others, otherwise the spurious test failures will drive you nuts. (The whole PR is just a single commit, but do add a merge commit anyway.) Next is #780. It's squashed and approved, but wait until #784 is in. After that you can expect this one (#778) and #781 to be ready soon, so there should be plenty of material for you to work with. Merry merging! |
58e1993
to
d10efec
Compare
Added a check for physical rate values and keept the timestamp calculation nested.
- Add rate variable (0.5 Hz) to detsim.conf - Add rate parameter in detsim function and MC_hits_from_files call
Update output files of test_detsim_exact and test_buffy_exact_result
d10efec
to
5685a0d
Compare
I hadn't realized that my branch was outdated |
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.
This PR succesfully implements timestamps for MC events in both detsim and buffy cities. Good job!
You can proceed with merging @carmenromo @halmamol @MiryamMV.
Yup. |
Timestamp calculation is based on
rate
parameter andevent number
.