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

BUG: Fix syntax errors raised after introducing f-strings #224

Merged
merged 1 commit into from Dec 7, 2023

Conversation

jhlegarreta
Copy link
Contributor

Fix syntax errors raised after introducing f-strings.

Fixes:

SlicerDMRI-build/inner-build/lib/Slicer-5.7/qt-scripted-modules/DICOMDiffusionVolumePlugin.py, line 115
    loadable.tooltip = f"Matches DICOM tags for the following vendor(s): {', '.join(matchingVendors)}")
                                                                                                      ^
SyntaxError: unmatched ')'

and

SlicerDMRI-build/inner-build/lib/Slicer-5.7/qt-scripted-modules/TractographyExportPLY.py, line 306
   self.delayDisplay(f"Test caused exception!\n"{str(e)}")
                                                ^
SyntaxError: invalid syntax

raised for example at:
https://github.com/SlicerDMRI/SlicerDMRI/actions/runs/7130356243/job/19416548387#step:8:541 https://github.com/SlicerDMRI/SlicerDMRI/actions/runs/7130356243/job/19416548387#step:8:559

Introduced inadvertently in commit 56b282f.

Fix syntax errors raised after introducing f-strings.

Fixes:
```
SlicerDMRI-build/inner-build/lib/Slicer-5.7/qt-scripted-modules/DICOMDiffusionVolumePlugin.py, line 115
    loadable.tooltip = f"Matches DICOM tags for the following vendor(s): {', '.join(matchingVendors)}")
                                                                                                      ^
SyntaxError: unmatched ')'
```

and
```
SlicerDMRI-build/inner-build/lib/Slicer-5.7/qt-scripted-modules/TractographyExportPLY.py, line 306
   self.delayDisplay(f"Test caused exception!\n"{str(e)}")
                                                ^
SyntaxError: invalid syntax
```

raised for example at:
https://github.com/SlicerDMRI/SlicerDMRI/actions/runs/7130356243/job/19416548387#step:8:541
https://github.com/SlicerDMRI/SlicerDMRI/actions/runs/7130356243/job/19416548387#step:8:559

Introduced inadvertently in commit 56b282f.
@jhlegarreta
Copy link
Contributor Author

Build failures are unrelated. Merging.

@jhlegarreta jhlegarreta merged commit 924c88f into SlicerDMRI:master Dec 7, 2023
1 check failed
@jhlegarreta jhlegarreta deleted the FixfStringSyntaxErrors branch December 7, 2023 21:35
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.

None yet

1 participant