Skip to content

Commit 4cf6bf4

Browse files
committed
replaced | dict merge with unpacking for compatibility with python 3.8
1 parent e9613fa commit 4cf6bf4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rushd/ddpcr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def load_ddpcr_metadata(unzipped_path: Path) -> Dict[Any, Any]:
7979
target_map = {
8080
p["Dye"]["DyeName"] + "_target": p["TargetName"] for p in w["Panel"]["Targets"]
8181
}
82-
metadata_from_plt[well] = condition_map | target_map
82+
metadata_from_plt[well] = {**condition_map, **target_map}
8383

8484
metadata_map = pd.DataFrame.from_dict(metadata_from_plt, orient="index").to_dict()
8585
return metadata_map
@@ -143,7 +143,7 @@ def load_ddpcr(
143143

144144
# Load metadata from .ddpcr file
145145
if extract_metadata:
146-
metadata_map = metadata_map | load_ddpcr_metadata(tmp_data_path)
146+
metadata_map = {**metadata_map, **load_ddpcr_metadata(tmp_data_path)}
147147

148148
# Load data for each well
149149
data_list = []

src/rushd/flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def load_well_metadata(yaml_path: Union[str, Path]) -> Dict[Any, Any]:
5858
5959
Parameters
6060
----------
61-
yaml_path: Path
61+
yaml_path: Path
6262
Path to the .yaml file to use for associating metadata with well IDs.
6363
6464
Returns

0 commit comments

Comments
 (0)