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

CAS-7319, added several new methods to MSMetaData #138

Merged
merged 1 commit into from
Jul 2, 2015

Conversation

dmehring
Copy link
Contributor

added various features to MSMetaData

modified:   ms/MSOper/MSKeys.cc
modified:   ms/MSOper/MSKeys.h
modified:   ms/MSOper/MSMetaData.cc
modified:   ms/MSOper/MSMetaData.h
modified:   ms/MSOper/MSSummary.cc
modified:   ms/MSOper/test/tMSMetaData.cc

@tammojan
Copy link
Contributor

@dmehring, could you pull the master into your branch? (git pull origin master) Due to a little accident the master would not pass the travis test. If you pull the master and then commit it on your branch, the travis tests should restart automatically.

@dmehring
Copy link
Contributor Author

git pull origin master

Done.

@juliantaylor
Copy link
Contributor

you can restart travis jobs in their ui, should be the arrow going in a circle in the build job.
travis should then merge against current master.

closing and reopening the pull also works

I wouldn't recommend merging master into PR's to update them, instead I would rebase them onto the origin branch, this has the advantage that the log is not filled with too many criss-cross merges.

@dmehring
Copy link
Contributor Author

Julian,
I'm not clear if your previous message was directed toward me or someone else. If you all need me to do something else, please be specific as both github and git are very new to me.
Thanks

@juliantaylor
Copy link
Contributor

restarting the job in the travis ui would have to be done by someone with commit rights. Though you should be able to close and reopen this PR to archive the same effect via the buttons below the comment box

@dmehring
Copy link
Contributor Author

"Though you should be able to close and reopen this PR to archive the same effect via the buttons below the comment box"

Is this something I need to do?

@tammojan
Copy link
Contributor

@dmehring Thanks for pulling in the master (perhaps not the best thing but I wouldn't advise a git rebase on your first try at git). I think you did not commit this change yet (git commit), or forgot to push it to github (git push origin).

I'll restart the test like @juliantaylor suggested once your commit shows up.

@dmehring
Copy link
Contributor Author

@tammojan My apologies. This is my first ever use of GitHub and my first use of git in over six years. I only did
git pull origin master

Would you like me to do both
git commit
andgit push origin

Or perhaps just one of these? Obviously, I'm not yet git literate.

@tammojan
Copy link
Contributor

No problem. I think just git push origin should suffice (I was a bit confused myself about the commit).

@dmehring
Copy link
Contributor Author

git push origin

Done

@tammojan
Copy link
Contributor

@juliantaylor Do you have an idea why Dave's merge doesn't show up here? I'm signing off for today.

@juliantaylor
Copy link
Contributor

origin in our current (draft) documentation is the users fork, upstream the main casacore repo.
So to update the branch with the latest master should be:

# check that the working copy is clean:
git status
# if dirty you could use git stash to temporarily stash away your changes
# update from upstream remote (= main casacore repo)
git fetch upstream
# check that this contains commit bfca97387f74ee717164aaa632e2925f4dd39129
git log upstream/master
# checkout the branch with your changes
git checkout CAS-7319
# rebase your branch onto the latest upstream/master
git rebase upstream/master
# git log should now show your changes on top of bfca97387f74ee717164aaa632e2925f4dd39129
# push the changes to your github fork named origin
git push -f origin CAS-7319

concerning git push origin, this is a bit dangerous as it will push all branches to the remote before git 2.0. I recommend to always qualify what you want to push via:

git push <remote> <branch-to-push>

@tammojan
Copy link
Contributor

Actually, @juliantaylor is right and a rebase is better. Since the merge is probably not committed this shouldn't be hard to do: revert the uncommitted changes, then rebase, then commit. @dmehring, could you ask your local git expert to look over your shoulder?

@dmehring
Copy link
Contributor Author

@tammojan I'm afraid @juliantaylor is the closest thing I have to a local git expert, and he of course is a full ocean plus half a continent away.

@juliantaylor
Copy link
Contributor

if you like we can go through it via e.g. IRC or some other more direct communication, you can find me as jtaylor in freenode and OFTC, though I'll be traveling until next monday.

@dmehring
Copy link
Contributor Author

@juliantaylor yes please. I'll contact you next week. Thanks!

added various features to MSMetaData

	modified:   ms/MSOper/MSKeys.cc
	modified:   ms/MSOper/MSKeys.h
	modified:   ms/MSOper/MSMetaData.cc
	modified:   ms/MSOper/MSMetaData.h
	modified:   ms/MSOper/MSSummary.cc
	modified:   ms/MSOper/test/tMSMetaData.cc
gervandiepen added a commit that referenced this pull request Jul 2, 2015
CAS-7319, added several new methods to MSMetaData
@gervandiepen gervandiepen merged commit a67b602 into casacore:master Jul 2, 2015
@gervandiepen
Copy link
Contributor

I've merged the pull request.

if (iter->first.first == scan) {
ret[iter->first.second] = iter->second;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

this loop will never end, iter++ missing?

juliantaylor added a commit to juliantaylor/casacore that referenced this pull request Jul 7, 2015
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.

None yet

4 participants