Skip to content

fix: add missing @staticmethod to convert_milliseconds_to_seconds#50

Open
Aarshpatel12 wants to merge 1 commit intoOSIPI:mainfrom
Aarshpatel12:fix-issue-9
Open

fix: add missing @staticmethod to convert_milliseconds_to_seconds#50
Aarshpatel12 wants to merge 1 commit intoOSIPI:mainfrom
Aarshpatel12:fix-issue-9

Conversation

@Aarshpatel12
Copy link

Hi OSIPI mentors! 👋

This PR addresses the logic bug reported in Issue #9.

Changes Included:

  • Added the missing @staticmethod decorator to convert_milliseconds_to_seconds in unit_conversion_utils.py.
  • This prevents Python from implicitly passing the class instance as the first positional argument (values), which was silently corrupting the BIDS metadata extraction whenever this utility was called from an instance (e.g., inside BaseSequence).

Fixes #9

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.

Missing @staticmethod on convert_milliseconds_to_seconds silently corrupts BIDS metadata extraction

1 participant