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

OA: parsing each open access category sequentially #38

Merged
merged 1 commit into from
Aug 1, 2024
Merged

Conversation

ErnestaP
Copy link
Contributor

@ErnestaP ErnestaP commented Aug 1, 2024

No description provided.

@ErnestaP ErnestaP force-pushed the fix-fetvhing branch 2 times, most recently from e29f62a to 9b07eca Compare August 1, 2024 13:30
@@ -1,17 +1,11 @@
from functools import reduce

import open_access.constants as constants
import open_access.utils as utils
Copy link
Contributor

Choose a reason for hiding this comment

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

let's import the methods that we need and not the whole module :)

@task(multiple_outputs=True, executor_config=kubernetes_executor_config)
def join_and_add_year(counts, **kwargs):
@task(executor_config=kubernetes_executor_config)
def add_year(green_access, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

why only green access?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

mm.. maybe its a confusing name, the last function that is called- is parsing green access. But each function in a chain adds the data to the final result dict. I will change it

@ErnestaP ErnestaP merged commit 0bf939c into main Aug 1, 2024
1 check passed
@drjova drjova deleted the fix-fetvhing branch November 5, 2024 13:43
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