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

arXiv: cleanup parser code #274

Merged
merged 2 commits into from
Sep 1, 2020

Conversation

tsgit
Copy link
Contributor

@tsgit tsgit commented May 29, 2019

* removing unused imports
* other minor code improvements

Signed-off-by: Thorsten Schwander thorsten.schwander@gmail.com

Description

code cleanup, removing unused imports, some whitespace and correcting an ill advised @staticmethod decorator

no functional changes

Related Issue

Motivation and Context

Checklist:

  • I have all the information that I need (if not, move to RFC and look for it).
  • I linked the related issue(s) in the corresponding commit logs.
  • I wrote good commit log messages.
  • My code follows the code style of this project.
  • I've added any new docs if API/utils methods were added.
  • I have updated the existing documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@tsgit tsgit requested a review from michamos May 29, 2019 03:13
Copy link
Contributor

@michamos michamos left a comment

Choose a reason for hiding this comment

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

👍 except for minor comment

hepcrawl/parsers/arxiv.py Outdated Show resolved Hide resolved
@tsgit tsgit force-pushed the arxivparser_code_cleanup branch from 01d77be to aa033d7 Compare May 29, 2019 18:13
    * removing unused imports
    * other minor code improvements

Signed-off-by: Thorsten Schwander <thorsten.schwander@gmail.com>
@tsgit
Copy link
Contributor Author

tsgit commented Dec 27, 2019

@michamos any chance this will get merged sometime ?

@@ -357,5 +346,5 @@ def source(self):
@property
def authors_and_collaborations(self):
if not hasattr(self, '_authors_and_collaborations'):
self._authors_and_collaborations = self._get_authors_and_collaborations(self, self.root)
self._authors_and_collaborations = self._get_authors_and_collaborations(self.root)
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @tsgit, just noticed this PR was still open. This seems like a huge mistake that would cause an exception due to wrong number of arguments previously. Do you understand how it was working?

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the IRL explanation!

@@ -357,5 +346,5 @@ def source(self):
@property
def authors_and_collaborations(self):
if not hasattr(self, '_authors_and_collaborations'):
self._authors_and_collaborations = self._get_authors_and_collaborations(self, self.root)
self._authors_and_collaborations = self._get_authors_and_collaborations(self.root)
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the IRL explanation!

@michamos michamos merged commit 3a4eeef into inspirehep:master Sep 1, 2020
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

2 participants