Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add conversion & unit tests for dgR, dtR & dsRMatrix#139

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
eddelbuettel merged 1 commit intoRcppCore:masterfrombinxiangni:master
Jun 20, 2017
Merged

Add conversion & unit tests for dgR, dtR & dsRMatrix#139

eddelbuettel merged 1 commit intoRcppCore:masterfrombinxiangni:master
Jun 20, 2017

Conversation

@binxiangni
Copy link
Contributor

@binxiangnibinxiangni commentedJun 19, 2017
edited
Loading

In order to solve#17 and#114. And there is a piece of codes using the algorithm fromscipy. I have added a reference to that. What else should I do to avoid violating the copy rights?@coatless@eddelbuettel@thirdwing

Btw, I squash and merge a branch called Rsparse to the master, but now the commit history still shows up here. I know the reason might be that I didn't squash and merge the previous commits, which leads to a messy timeline. :(

thirdwing reacted with thumbs up emoji
@eddelbuettel
Copy link
Member

eddelbuettel commentedJun 19, 2017
edited
Loading

I think you are doing something wrong.

You have not pulled or merged or ... the master branch. Most of these commits here we already accounted for.

That is not in and by itself a big problem, it's just that we could do this more elegantly.

@eddelbuettel
Copy link
Member

It is worth trying one or two things with git. You can rename your current RcppArmadillo working directory and copy of the repo -- say,RcppArmadillo-previous (or add the date, or ...).

The create a fresh checkout. That corresponds to our master branch here.

Then try to get both aligned. You should be able to the the 'working' copy (ie 'previous' above) to just about the same set of commits -- differing only by yournew commits made since I merged the branch.

binxiangni reacted with thumbs up emoji

@coatless
Copy link
Contributor

Next time around, rungit pull --rebase <remote-name> <branch-name> before starting on a PR. This should bring your branch up to the present base without a "Merge branch 'master' of github.com:user/repo"

SeeAtlassian's Git Rebasing for more.

binxiangni reacted with thumbs up emoji

@eddelbuettel
Copy link
Member

Why rebase and not just merge? The language about 'new commits' tends to confuse me because I do want the existing commits, not the old changes recommitted as new ones.

I think what I do in such a case is to

  • pull the remote master (ie this repository) to be current
  • branch cleanly ie with a freshgit checkout -b feature/newstuff which then contains all of master

But this is git so there are probably half a dozen ways...

@eddelbuettel
Copy link
Member

That looks much better 💯

@eddelbuettel
Copy link
Member

eddelbuettel commentedJun 19, 2017
edited
Loading

Looks really good. Two quick questions:

  1. You mentioned

And there is a piece of codes using the algorithm from scipy.

Where is that? Does it need a attribution in the file header (i.e. something like 'Portions taken from file abc.py written by D, E and F and released under copyright G' ?)

  1. So what did you do for the cleaner PR? Just a pull from our master, and push? It did the right thing as all the commits we already accounted

@binxiangni
Copy link
ContributorAuthor

binxiangni commentedJun 19, 2017
edited
Loading

You can look at the referencehere. If attribution can be added, that would be great. It can be "Portions taken from filecsr.h written by SciPy developers and released under Copyright 2017 SciPy developers. "(?) I only find that on their website.

  • git clone binxiangni/RcppArmadillo to local and git reset to the commit without all my previous commits.

  • git pull from RcppCore/RcppArmadillo

  • paste the three modified files to the local repo, git add and git commit

  • git push -f to binxiangni/RcppArmadillo

@eddelbuettel
Copy link
Member

  1. My bad. I missed the reference. Yes. something like that would do. I may be hard to get concise author reference for SciPy.

  2. I see. I didn't account for thegit push -f possibility.

All good.

@eddelbuetteleddelbuettel merged commit8fe1f63 intoRcppCore:masterJun 20, 2017
@eddelbuettel
Copy link
Member

All merged.

@binxiangni can you maybe write a short note at each of e#17 and#114 and close them, if appropriate, now that this is merged?

binxiangni reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@thirdwingthirdwingthirdwing approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@binxiangni@eddelbuettel@coatless@thirdwing

[8]ページ先頭

©2009-2025 Movatter.jp