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

fix(wasi-function-module): use file path variable name #1096

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Mar 11, 2024

Getting runtime type error in path with

        for value in files:
            input_file = str(PurePosixPath(files))

Changes to

        for value in files:
            input_file = str(PurePosixPath(value))

@@ -180,7 +180,7 @@ from itkwasm import (
const interfaceType = interfaceJsonTypeToInterfaceType.get(parameter.type)
if (interfaceType.includes('File')) {
// for files
args += ` input_file = str(PurePosixPath(${snakeCase(parameter.name)}))\n`
args += ` input_file = str(PurePosixPath(value))\n`
Copy link
Member

Choose a reason for hiding this comment

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

Looks reasonable

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Otay!

@PaulHax PaulHax marked this pull request as ready for review March 11, 2024 19:09
@thewtex thewtex merged commit 7ddf1d0 into InsightSoftwareConsortium:main Mar 12, 2024
113 of 125 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