We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1f1c3d commit 4df4635Copy full SHA for 4df4635
1 file changed
petab/v2/lint.py
@@ -954,9 +954,12 @@ def run(self, problem: Problem) -> ValidationIssue | None:
954
)
955
956
for mapping in problem.mappings:
957
- # petabEntityId is not referenced in any model
+ # petabEntityId not referenced in any model, if alias
958
for model in problem.models:
959
- if model.has_entity_with_id(mapping.petab_id):
+ if (
960
+ mapping.petab_id != mapping.model_id
961
+ and model.has_entity_with_id(mapping.petab_id)
962
+ ):
963
messages.append(
964
f"`{mapping.petab_id}` is used in the mapping "
965
"table and referenced directly in the model "
0 commit comments