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

Add sample and populate functionalities to datacite #47

Merged
merged 2 commits into from
Jun 26, 2024
Merged

Add sample and populate functionalities to datacite #47

merged 2 commits into from
Jun 26, 2024

Conversation

evgepab
Copy link
Contributor

@evgepab evgepab commented Jun 25, 2024

No description provided.

@evgepab
Copy link
Contributor Author

evgepab commented Jun 25, 2024

Lint is failing due to the duplicated code in datacite.py & crossref.py. By adding the new module json_source.py as discussed this will be resolved. Should the new module be added on this PR?

@dspinellis
Copy link
Owner

Lint is failing due to the duplicated code in datacite.py & crossref.py. By adding the new module json_source.py as discussed this will be resolved. Should the new module be added on this PR?

Yes, please!

Copy link
Owner

@dspinellis dspinellis left a comment

Choose a reason for hiding this comment

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

Nice polishing! I suggested one minor change.

src/alexandria3k/data_sources/datacite.py Show resolved Hide resolved
@@ -878,24 +819,29 @@ def tar_file_generator(self):
continue
# Obtain DOI prefix from file name to avoid extraction and parsing
(_dot, doi_prefix, file_name) = self.tar_info.name.split("/")
if not self.sample(file_name):
continue
Copy link
Owner

Choose a reason for hiding this comment

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

Nice!

@dspinellis dspinellis merged commit c8d96d3 into dspinellis:datacite Jun 26, 2024
0 of 5 checks passed
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.

2 participants