Skip to content

Commit ecf7a4c

Browse files
committed
Change default to all_analyses
1 parent 5a99376 commit ecf7a4c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

autonima/coordinates/nimads_models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,21 +291,21 @@ def convert_to_nimads_studyset(studyset_id: str, studies: List['autonima.models.
291291

292292

293293
def create_default_annotation(studyset_id: str, studyset: Studyset) -> Annotation:
294-
"""Create a default annotation with include=True for all analyses in the studyset."""
294+
"""Create a default annotation with all_analyses=True for all analyses in the studyset."""
295295
annotation_id = f"annotation_{studyset_id}"
296296
annotation = Annotation(
297297
id=annotation_id,
298298
name="replication_annotations",
299299
description="",
300-
note_keys={"include": "boolean"},
300+
note_keys={"all_analyses": "boolean"},
301301
studyset_id=studyset_id
302302
)
303303

304304
# Create notes for each analysis
305305
for study in studyset.studies:
306306
for analysis in study.analyses:
307307
note = NoteCollection(
308-
note={"include": True},
308+
note={"all_analyses": True},
309309
analysis_id=analysis.id,
310310
annotation_id=annotation_id
311311
)

0 commit comments

Comments
 (0)