Skip to content

Conversation

@mliu49
Copy link
Contributor

@mliu49 mliu49 commented Feb 9, 2018

This PR updates the copyright date in the LICENSE.txt file. It also adds a new script to automatically update all file headers based on the LICENSE.txt file and updates the headers with that script.

To review, check the diffs to make sure no important lines were accidentally lost.

Small note: Some manual changes were needed before I ran the script the first time since the file headers were not uniform. The script as it is now works properly with the updated files, so updating headers in the future should be pretty painless.

@mliu49 mliu49 added the Status: Ready for Review PR is complete and ready to be reviewed label Feb 9, 2018
@mliu49 mliu49 requested a review from amarkpayne February 9, 2018 01:15
@codecov
Copy link

codecov bot commented Feb 9, 2018

Codecov Report

Merging #1277 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1277      +/-   ##
==========================================
+ Coverage   43.46%   43.47%   +<.01%     
==========================================
  Files         170      170              
  Lines       28249    28253       +4     
  Branches     5496     5496              
==========================================
+ Hits        12278    12282       +4     
  Misses      15135    15135              
  Partials      836      836
Impacted Files Coverage Δ
rmgpy/data/kinetics/depository.py 61.97% <ø> (ø) ⬆️
rmgpy/tools/canteraModel.py 38.87% <ø> (ø) ⬆️
rmgpy/data/kinetics/groups.py 15.43% <ø> (ø) ⬆️
rmgpy/molecule/molecule.py 0% <ø> (ø) ⬆️
rmgpy/tools/regression.py 29.76% <ø> (ø) ⬆️
rmgpy/data/reference.py 17.39% <ø> (ø) ⬆️
rmgpy/cantherm/gaussian.py 78.5% <ø> (ø) ⬆️
rmgpy/tools/diff_models.py 37.28% <ø> (ø) ⬆️
rmgpy/molecule/util.py 0% <ø> (ø) ⬆️
rmgpy/qm/mopac.py 68.63% <ø> (ø) ⬆️
... and 94 more

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 2b9754b...cb86749. Read the comment docs.

Copy link
Member

@amarkpayne amarkpayne left a comment

Choose a reason for hiding this comment

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

This is an awesome PR! There a just a couple of quick fixes that need to be done, but other than that it looks good to go. Make the changes, update the branch, and then I'll merge it in. Awesome job with the script! It will save us a lot of time in the future.


print header

def replace_header(file):
Copy link
Member

Choose a reason for hiding this comment

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

This won't affect anything, but you might want to change the name file since it file() is already defined in python. You could try something like old_file. Again, this won't affect anything (besides highlighting as Github thinks it is a function and doesn't know better), so if you'd rather just leave it that is fine by me


"""
Created on Apr 29, 2012
@author: nmvdewie and rwest
Copy link
Member

Choose a reason for hiding this comment

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

Should we keep statements like this?

@@ -1,0 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

Copy link
Member

Choose a reason for hiding this comment

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

It did not copy over the license because this file was completely blank. I think if you manually add the license this one time it will work in the future. That or we should modify your script to handle this case.

@@ -1,0 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

Copy link
Member

Choose a reason for hiding this comment

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

Same issue with this file

@@ -1,29 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

Copy link
Member

Choose a reason for hiding this comment

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

License missing


'''
Created on Feb 26, 2013
Copy link
Member

Choose a reason for hiding this comment

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

Should we keep the comment below this line?

@@ -1,3 +1,31 @@
# This file describes the version of RMG-Py
Copy link
Member

Choose a reason for hiding this comment

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

This line gets removed accidently

@mliu49
Copy link
Contributor Author

mliu49 commented Feb 12, 2018

I removed the author tags as we discussed. Let me know when you've reviewed the new commits, and then I'll rebase and squash.

amarkpayne
amarkpayne previously approved these changes Feb 12, 2018
Copy link
Member

@amarkpayne amarkpayne left a comment

Choose a reason for hiding this comment

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

Everything looks good! Update this branch and then I will merge it in

@amarkpayne amarkpayne merged commit 4a321e9 into master Feb 13, 2018
@amarkpayne amarkpayne deleted the update_headers branch February 13, 2018 01:57
@amarkpayne amarkpayne removed the Status: Ready for Review PR is complete and ready to be reviewed label Feb 13, 2018
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.

3 participants