Skip to content

Conversation

@DrPaulSharp
Copy link
Collaborator

@DrPaulSharp DrPaulSharp commented May 12, 2025

Closes #157

@DrPaulSharp DrPaulSharp requested a review from StephenNneji May 12, 2025 14:10
RATapi/inputs.py Outdated
for field in contrast_fields:
if getattr(contrast, field) == "":
raise ValueError(
f'In the input project, the {field} of contrast "{contrast.name}" does not have a '
Copy link
Contributor

Choose a reason for hiding this comment

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

f'In the input project, the "{field}" of contrast "{contrast.name}" does not have a '

RATapi/inputs.py Outdated
for field in layer_fields:
if getattr(layer, field) == "":
raise ValueError(
f"In the input project, the {field} field of layer {layer.name} does not have a value "
Copy link
Contributor

Choose a reason for hiding this comment

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

f'In the input project, the "{field}" field of layer "{layer.name}" does not have a value '

@DrPaulSharp DrPaulSharp merged commit 8bd5363 into RascalSoftware:main May 12, 2025
7 checks passed
@DrPaulSharp DrPaulSharp deleted the error_msg branch May 12, 2025 16:53
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.

Need better error message for empty values

2 participants