|  | 
| 1 |  | - | 
| 2 | 1 | import re | 
| 3 | 2 | 
 | 
| 4 | 3 | from pylabrobot.resources import Coordinate | 
| @@ -78,9 +77,7 @@ def main(pc, tc, p, tr, tcr): | 
| 78 | 77 |         if all(x == resource_size_x[0] for x in resource_size_x) and all( | 
| 79 | 78 |           y == resource_size_y[0] for y in resource_size_y | 
| 80 | 79 |         ): | 
| 81 |  | -          o.write( | 
| 82 |  | -            f"    sites=create_homogeneous_resources(klass=ResourceHolder, locations=[\n" | 
| 83 |  | -          ) | 
|  | 80 | +          o.write(f"    sites=create_homogeneous_resources(klass=ResourceHolder, locations=[\n") | 
| 84 | 81 |           for l in locations: | 
| 85 | 82 |             o.write(f"        {repr(l)},\n") | 
| 86 | 83 |           o.write(f"      ],\n") | 
| @@ -174,9 +171,7 @@ def main(pc, tc, p, tr, tcr): | 
| 174 | 171 |           o.write(f"  #   size_x={size_x},\n") | 
| 175 | 172 |           o.write(f"  #   size_y={size_y},\n") | 
| 176 | 173 |           o.write("  #   size_z=None,           # measure the total z height\n") | 
| 177 |  | -          o.write( | 
| 178 |  | -            "  #   nesting_z_height=None, # measure overlap between lid and plate\n" | 
| 179 |  | -          ) | 
|  | 174 | +          o.write("  #   nesting_z_height=None, # measure overlap between lid and plate\n") | 
| 180 | 175 |           o.write(f'  #   model="{lid_name}",\n') | 
| 181 | 176 |           o.write("  # )\n\n\n") | 
| 182 | 177 | 
 | 
| @@ -226,9 +221,7 @@ def main(pc, tc, p, tr, tcr): | 
| 226 | 221 |             # print a warning, because this parameter is confusing in the file and I don't have | 
| 227 | 222 |             # have a device to test this on. tbc. | 
| 228 | 223 |             tcr.write('  print("WARNING: total_tip_length <= 0.")\n') | 
| 229 |  | -            tcr.write( | 
| 230 |  | -              '  print("Please get in touch at https://discuss.pylabrobot.org")\n' | 
| 231 |  | -            ) | 
|  | 224 | +            tcr.write('  print("Please get in touch at https://discuss.pylabrobot.org")\n') | 
| 232 | 225 |           tcr.write(f"  return TecanTip(\n") | 
| 233 | 226 |           tcr.write(f"    has_filter={has_filter},\n") | 
| 234 | 227 |           tcr.write(f"    total_tip_length={total_tip_length},\n") | 
| @@ -259,7 +252,7 @@ def main(pc, tc, p, tr, tcr): | 
| 259 | 252 | if __name__ == "__main__": | 
| 260 | 253 |   with open("plate_carriers.py", "w") as plate_carriers, open( | 
| 261 | 254 |     "tip_carriers.py", "w" | 
| 262 |  | -  ) as tip_carriers, open("plates.py", "w") as plates, open( | 
| 263 |  | -    "tip_racks.py", "w" | 
| 264 |  | -  ) as tip_racks, open("tip_creators.py", "w") as tip_creators: | 
|  | 255 | +  ) as tip_carriers, open("plates.py", "w") as plates, open("tip_racks.py", "w") as tip_racks, open( | 
|  | 256 | +    "tip_creators.py", "w" | 
|  | 257 | +  ) as tip_creators: | 
| 265 | 258 |     main(plate_carriers, tip_carriers, plates, tip_racks, tip_creators) | 
0 commit comments