Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #138 #139

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion paml/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def is_in_mask(entry, row_col_pairs):
is_in_mask(coordinate_to_row_col(x), row_col_pairs)
for x in contents_array.data
],
coords={Strings.ALIQUOT: contents_array}
coords=[(Strings.ALIQUOT, contents_array.data)]
)
return json.dumps(mask_array.to_dict())
SampleArray.mask = sample_array_mask
Expand Down
4 changes: 2 additions & 2 deletions paml/sample_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def many_to_one_sample_map_get_map(self):
source_to_target_arrays = {
source.identity : xr.DataArray([""]*len(aliquots),
dims=(target.identity),
coords={target.identity: aliquots})
coords=[(target.identity, aliquots)])
for source in sources
}

Expand All @@ -68,7 +68,7 @@ def one_to_many_sample_map_get_map(self):
source_to_target_arrays = {
target.identity : xr.DataArray([""]*len(aliquots),
dims=(source.identity),
coords={source.identity: aliquots})
coords=[(source.identity, aliquots)])
for target in targets
}

Expand Down
4 changes: 2 additions & 2 deletions test/test_samplemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ def test_create_protocol(self):
for reagent in reagents]
for id in aliquot_ids],
dims=("aliquot", "contents"),
coords={"aliquot": aliquot_ids,
"contents": [r.identity for r in reagents]}).to_dict()))
coords=[("aliquot", aliquot_ids),
("contents", [r.identity for r in reagents])]).to_dict()))
# 3.
sample_array_parameter = create_source.pin_parameter("sample_array")
[old_input] = [x for x in create_source.inputs if x.name == "sample_array"]
Expand Down
Loading