openMetadataInitiative / bids2openminds

A tool to generate openMINDS metadata from BIDS datasets
MIT License
1 stars 3 forks source link

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

Closed Peyman-N closed 4 months ago

Peyman-N commented 4 months ago

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 commented 4 months ago

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