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

Resolve Issue of Global Object Dependency by Implementing Local Collection in Converter Function #34

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

Peyman-N
Copy link
Member

Having a global object was causing a problem in running the code multiple times in series.
This pull request, solves this by creating a collection in converter function and pass it through each create function.

@Peyman-N Peyman-N requested review from apdavison and lzehl April 30, 2024 10:53
This was referenced Apr 30, 2024
Closed
Copy link
Member

@lzehl lzehl left a comment

Choose a reason for hiding this comment

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

@Peyman-N the formatting seems off in several places as if half of lines try to follow PEP8 the other not... can you double check this? otherwise I think the changes are okay. @apdavison I leave it to you

if not pd.isna(openminds_techniques_cache):
techniques.extend(openminds_techniques_cache)
else:
warn(f"The {suffix} suffix is currently considered an auxiliary file for already existing techniques or a non technique file.")
warn(
Copy link
Member

Choose a reason for hiding this comment

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

? why is there a line break?

Copy link
Member Author

Choose a reason for hiding this comment

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

The toolbox that I am using to make it PEP8 compliant keep adding this. I don't know why :/
I thought, I have deleted it.

Copy link
Member

Choose a reason for hiding this comment

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

it makes the line length fit within the limit

@Peyman-N
Copy link
Member Author

I checked it for PEP8 using autopep8, but maybe it have a problem. can tell me which lines doesn't follow PEP8.

@apdavison apdavison merged commit 3bb6c14 into openMetadataInitiative:main Apr 30, 2024
4 checks passed
@Peyman-N Peyman-N deleted the deleting_globals branch April 30, 2024 12:54
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