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

literature: add record params #359

Merged
merged 1 commit into from
May 10, 2019

Conversation

harunurhan
Copy link
Contributor

Enables adding record objects for various fields:

  • publication_info: conference_record, journal_record
  • accelerator_experiment: record
  • author: record

@@ -222,6 +223,7 @@ def add_author(self, author):

@filter_empty_parameters
def make_author(self, full_name,
record=None,
Copy link
Contributor

Choose a reason for hiding this comment

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

you should add it at the end, otherwise it breaks when using positional args, and update the docstring.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but I hope nobody is calling it like that :)

def add_accelerator_experiment(self, legacy_name, record=None):
"""Add legacy name in accelerator experiment.

:type legacy_name: string
Copy link
Contributor

Choose a reason for hiding this comment

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

add record to docstring.

}]


def test_publication_info_public_note():
Copy link
Contributor

Choose a reason for hiding this comment

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

wrong copy/paste?

 Enables adding record objects for various fields:

* publication_info: conference_record, journal_record
* accelerator_experiment: record
* author: record
@harunurhan harunurhan merged commit b36f6d4 into inspirehep:master May 10, 2019
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