Skip to content

Commit 01b303f

Browse files
authored
Merge pull request #88 from mathieudpnt/hotfix/color_fix
Hotfix/color fix
2 parents e747aa8 + 6a80e93 commit 01b303f

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/post_processing/dataclass/data_aplose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def from_yaml(
460460
cls,
461461
file: Path,
462462
*,
463-
concat: bool = False,
463+
concat: bool = True,
464464
) -> DataAplose | list[DataAplose]:
465465
"""Return a DataAplose object from a yaml file.
466466

src/post_processing/utils/filtering_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def reshape_timebin(
322322
"annotator": [ant] * len(file_vector),
323323
"start_datetime": start_datetime,
324324
"end_datetime": end_datetime,
325-
"is_box": [0] * len(file_vector),
325+
"type": ["WEAK"] * len(file_vector),
326326
},
327327
),
328328
)

src/post_processing/utils/plot_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def histo(
121121
"width": bar_width.total_seconds() / 86400,
122122
"align": "edge",
123123
"edgecolor": "black",
124-
"color": color,
124+
"color": color[i],
125125
"zorder": 2,
126126
}
127127
if legend_labels:

tests/test_filtering_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def test_no_timebin_original_timebin(sample_df: DataFrame) -> None:
478478
[Timestamp("2025-01-26 06:20:00+00:00")] * 7,
479479
"end_datetime": [Timestamp("2025-01-25 06:21:00+00:00")] * 11 +
480480
[Timestamp("2025-01-26 06:21:00+00:00")] * 7,
481-
"is_box": [0] * 18,
481+
"type": ["WEAK"] * 18,
482482
},
483483
)
484484

0 commit comments

Comments
 (0)