File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -487,7 +487,7 @@ def sanitize_string(value: str) -> str:
487487 """
488488 Make string safe to be used in file/folder names.
489489
490- Make the string lower-case, and replace any special character with an
490+ Replace any special character with an
491491 underscore, where special characters are:
492492
493493
@@ -502,7 +502,6 @@ def sanitize_string(value: str) -> str:
502502 Returns:
503503 Sanitized value
504504 """
505- new_value = value .lower ()
506505 for character in __SPECIAL_CHARACTERS__ :
507- new_value = new_value .replace (character , "_" )
506+ new_value = value .replace (character , "_" )
508507 return new_value
Original file line number Diff line number Diff line change @@ -257,7 +257,10 @@ def cellvoyager_to_ome_zarr_init_multiplex(
257257 raise ValueError (f"{ current_plates = } " )
258258 plate = sanitize_string (current_plates [0 ])
259259
260- zarrurl = dict_acquisitions [acquisitions_sorted [0 ]]["plate" ] + ".zarr"
260+ zarrurl = (
261+ sanitize_string (dict_acquisitions [acquisitions_sorted [0 ]]["plate" ])
262+ + ".zarr"
263+ )
261264 full_zarrurl = str (Path (zarr_dir ) / zarrurl )
262265 logger .info (f"Creating { full_zarrurl = } " )
263266 # Call zarr.open_group wrapper, which handles overwrite=True/False
@@ -418,6 +421,8 @@ def cellvoyager_to_ome_zarr_init_multiplex(
418421 Well (** well_attrs )
419422 group_well .attrs ["well" ] = well_attrs
420423 zarrurls ["well" ].append (f"{ plate } .zarr/{ row } /{ column } " )
424+ print (plate )
425+ print (zarrurls ["well" ])
421426 except ContainsGroupError :
422427 group_well = zarr .open_group (
423428 f"{ full_zarrurl } /{ row } /{ column } /" , mode = "r+"
You can’t perform that action at this time.
0 commit comments