# Missing deck

**URL:** <https://discuss.pylabrobot.org/t/missing-deck/111>\
**Category:** General\
**Created:** [January 3, 2025, 6:10am UTC](https://discuss.pylabrobot.org/t/missing-deck/111 "2025-01-03T06:10:40Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwehrhan](https://discuss.pylabrobot.org/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@cwehrhan](https://discuss.pylabrobot.org/u/cwehrhan)\
**Post date:** [January 3, 2025, 6:10am UTC](https://discuss.pylabrobot.org/t/missing-deck/111/1 "2025-01-03T06:10:41Z")

</div>

Hey all, was spinning up pylabrobot on my home laptop, I don’t remember having this on my work computer. Just went through installation and was looking to run the visualizer. When I ran the example script my visualizer looks like this with no deck:

 ![image](https://discuss.pylabrobot.org/uploads/default/original/1X/079c02ccef5fa111f3ec018e823fb74f9e66cad8.png)

Anyone have this happen before?

---

<div class="post-metadata">

**Author:** ![CamilloMoschner](https://discuss.pylabrobot.org/user_avatar/discuss.pylabrobot.org/camillomoschner/32/7_2.png) [@CamilloMoschner](https://discuss.pylabrobot.org/u/CamilloMoschner)\
**Post date:** [January 3, 2025, 8:55am UTC](https://discuss.pylabrobot.org/t/missing-deck/111/2 "2025-01-03T08:55:23Z")

</div>

Hi @cwehrhan,

Could you please provide a minimal amount of code to enable us to reproduce the issue?

Ideally with some background information: OS, Python version, …

---

<div class="post-metadata">

**Author:** ![cwehrhan](https://discuss.pylabrobot.org/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@cwehrhan](https://discuss.pylabrobot.org/u/cwehrhan)\
**Post date:** [January 4, 2025, 12:54am UTC](https://discuss.pylabrobot.org/t/missing-deck/111/3 "2025-01-04T00:54:03Z")

</div>

Haha sorry, was late forgot to add.

Here is the code, it’s just the setup script direct from the “using the visualizer”

> <https://github.com/Colinwehrhan/pylabrobot_scripts/blob/main/simulate_test.ipynb>

Is just a link to the repo ok? Or should I copy and paste the code here?

OS Name Microsoft Windows 10 Pro  
Version 10.0.19045 Build 19045  
Python 3.12.1 (tags/v3.12.1:2305ca5, Dec 7 2023, 22:03:25)  
Chrome Version 131.0.6778.205 (Official Build) (64-bit)

Happens in edge and firefox, not browser related at all.

---

<div class="post-metadata">

**Author:** ![rickwierenga](https://discuss.pylabrobot.org/user_avatar/discuss.pylabrobot.org/rickwierenga/32/963_2.png) [@rickwierenga](https://discuss.pylabrobot.org/u/rickwierenga)\
**Post date:** [January 5, 2025, 7:19pm UTC](https://discuss.pylabrobot.org/t/missing-deck/111/4 "2025-01-05T19:19:31Z")

</div>

fixed with [serialize inf as strings · PyLabRobot/pylabrobot@5303983 · GitHub](https://github.com/PyLabRobot/pylabrobot/commit/5303983fe271fecde16eaca62f7e54682c08dfca)

the issue was i made the trash have “infinite” volume, which was not serialized/deserialized correctly.

you can see the teaching tip rack looks botched, which i will fix when looking at camillo’s pr #350. everything else should work

 ![image](https://discuss.pylabrobot.org/uploads/default/original/1X/2f90102881d71e483a0552293e3b59d7bd777b1b.jpeg)

---

<div class="post-metadata">

**Author:** ![cwehrhan](https://discuss.pylabrobot.org/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@cwehrhan](https://discuss.pylabrobot.org/u/cwehrhan)\
**Post date:** [January 7, 2025, 12:17am UTC](https://discuss.pylabrobot.org/t/missing-deck/111/5 "2025-01-07T00:17:19Z")

</div>

Thanks for the quick fix! Got it working, just wondering is the “start recording” button at the top normal on your instance as well?

 ![image](https://discuss.pylabrobot.org/uploads/default/original/1X/a3d450aff7447d42bdd8802c6469078d80a7d24d.png)

---

<div class="post-metadata">

**Author:** ![rickwierenga](https://discuss.pylabrobot.org/user_avatar/discuss.pylabrobot.org/rickwierenga/32/963_2.png) [@rickwierenga](https://discuss.pylabrobot.org/u/rickwierenga)\
**Post date:** [January 7, 2025, 2:13am UTC](https://discuss.pylabrobot.org/t/missing-deck/111/6 "2025-01-07T02:13:11Z")

</div>

yes it seems to be working perfectly. does it work for you?

---

<div class="post-metadata">

**Author:** ![CamilloMoschner](https://discuss.pylabrobot.org/user_avatar/discuss.pylabrobot.org/camillomoschner/32/7_2.png) [@CamilloMoschner](https://discuss.pylabrobot.org/u/CamilloMoschner)\
**Post date:** [January 7, 2025, 10:19am UTC](https://discuss.pylabrobot.org/t/missing-deck/111/7 "2025-01-07T10:19:15Z")

</div>

A little bit of background (because I don’t think the recording feature - which is pretty unique to PLR, as far as I know - is explained on the docs yet):

The visualizer recording feature is the brainchild of [Joseph Laforet Jr](https://www.linkedin.com/in/joseph-laforet-jr-64845a203?original_referer=https%3A%2F%2Fgithub.com%2Fjoelaforet) (I think we might have lost him on the transition to the dedicated PLR dev forum?).

In [PR#162 - Protocol Visualizer Overhaul: Making GIFs](https://github.com/PyLabRobot/pylabrobot/pull/162) he describes the feature:

_“As part of a suite of educational tools we are building for a class at Duke, I extended the functionality of the visualizer to now allow rendering of protocols as .gifs. There are now a few buttons added to the visualizer.”_

Pretty neat, and indeed very handy for training purposes and showcasing to pure wetlab bioscientists how the required experiment is not humanly-executable 🙂

---

<div class="post-metadata">

**Author:** ![cwehrhan](https://discuss.pylabrobot.org/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@cwehrhan](https://discuss.pylabrobot.org/u/cwehrhan)\
**Post date:** [January 7, 2025, 6:54pm UTC](https://discuss.pylabrobot.org/t/missing-deck/111/8 "2025-01-07T18:54:33Z")

</div>

Gotcha, thanks, yeah didn’t see it in the docs so was just wondering if it was normal. Thanks for clearing that up!

---

<div class="post-metadata">

**Author:** ![cwehrhan](https://discuss.pylabrobot.org/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@cwehrhan](https://discuss.pylabrobot.org/u/cwehrhan)\
**Post date:** [January 8, 2025, 1:23am UTC](https://discuss.pylabrobot.org/t/missing-deck/111/9 "2025-01-08T01:23:23Z")

</div>

Sorry I have another few questions/problems:

1. I just tried updating the plates with liquid in the visualizer and it is not showing, code here: [pylabrobot\_scripts/simple\_cherry\_pick.ipynb at main · Colinwehrhan/pylabrobot\_scripts · GitHub](https://github.com/Colinwehrhan/pylabrobot_scripts/blob/main/simple_cherry_pick.ipynb)

2. Why are the plates index 0 at the front of the instrument, are the channels also indexed this way? Traditionally on Hamiltons the back is the first position. This is in line with the channels, they are denoted first position at the back. That way you are always talking about the the first position being in the back of the instrument if its a channel, plate, plate position etc easy for context switching if they share the same language

3. Is the set liquid just used for visualization or tracking as well? What happens when you mix liquids, say for a normalization?

---

<div class="post-metadata">

**Author:** ![CamilloMoschner](https://discuss.pylabrobot.org/user_avatar/discuss.pylabrobot.org/camillomoschner/32/7_2.png) [@CamilloMoschner](https://discuss.pylabrobot.org/u/CamilloMoschner)\
**Post date:** [January 8, 2025, 9:51am UTC](https://discuss.pylabrobot.org/t/missing-deck/111/10 "2025-01-08T09:51:35Z")

</div>

> [@cwehrhan](#):
>
> I just tried updating the plates with liquid in the visualizer and it is not showing, code here: [pylabrobot\_scripts/simple\_cherry\_pick.ipynb at main · Colinwehrhan/pylabrobot\_scripts · GitHub](https://github.com/Colinwehrhan/pylabrobot_scripts/blob/main/simple_cherry_pick.ipynb)

Question 1: We have to check this and get back to you.

Question 2:

> [@cwehrhan](#):
>
> Why are the plates index 0 at the front of the instrument, are the channels also indexed this way?

I assume you are referring to the practice of indexing `PlateHolder` / “sites” on a carrier from front to back in PLR, rather than back to front like in Venus?

Good question: We were very confused by Hamilton machines’ indexing because the Cartesian coordinate system defining a resource starts _in the front-left-bottom_ (flb) of the deck/carriers/plates.  
So it made the most sense to us that the first `PlateHolder` or “site” on a carrier should adhere to the coordinate system that it uses: i.e. the first `PlateHolder` has the **lowest** y-coordinate for its origin - it is the **first** item that a search algorithm finds when going through the coordinate system.

We did ask Hamilton personnel what the rational was and couldn’t get an answer. So we kept the coordinate-system rationale.

However, over time we realised what you are saying: that VENUS’ indexing of carrier sites / `PlateHolder`s is likely back-to-front because it simplifies context switching:  
e.g. in PLR, when using a tube carrier: if tubes 0-7 are placed front-to-back in the first 8 tube carrier sites there is a problem →

 ![Moschner_quick_carrier_site_indexing_example](https://discuss.pylabrobot.org/uploads/default/original/1X/5932a68f7c3922b1639d64df18c92ddc3d9b1665.png)

We easily overcome this problem in Python by filling tubes in reverse and using simple Python logic to process the tubes correctly (Python - yeah 💪 )

Regarding channels:

The channels could not be (that easily) changed due to firmware-constraints → the **backmost channel is `0`** because this is **Python** (i.e. all the classic arguments for 0-based indexing).

Maybe we should discuss changing the indexing?  
But we haven’t done this so far because Python offers an infinite arsenal of solutions, and the “adhering to the Coordinate system for indexing” has worked well for PLR so far.

…a bit of an extensive answer but there are quite some nuances and tradeoffs 🙂

> [@cwehrhan](#):
>
> 1. Is the set liquid just used for visualization or tracking as well? What happens when you mix liquids, say for a normalization?

Question 3: I’ll leave this question maybe for @rickwierenga ?

I don’t use the liquid visualiser and set the cross-contamination tracker to False because I don’t need them for my applications at the moment.

---

<div class="post-metadata">

**Author:** ![rickwierenga](https://discuss.pylabrobot.org/user_avatar/discuss.pylabrobot.org/rickwierenga/32/963_2.png) [@rickwierenga](https://discuss.pylabrobot.org/u/rickwierenga)\
**Post date:** [January 8, 2025, 6:38pm UTC](https://discuss.pylabrobot.org/t/missing-deck/111/11 "2025-01-08T18:38:54Z")

</div>

1. this seems to work for me. the red wells are where liquid is, and the opacity is proportional to _liquid\_in\_well_ / _well\_volume_.

 ![image](https://discuss.pylabrobot.org/uploads/default/original/1X/389f29ec03e0c0e79efea88295f4606a270d9c4d.jpeg)

if it is not working for you, could you see if there are any errors in the javascript console?

1. Thanks Camillo for the very detailed answer. In more general terms: the goal of PLR is to do what makes sense based on physical reality, rather than inheriting decisions from legacy projects like venus because those decisions don’t always make sense.
2. the set of liquid is also used for [contamination tracking](https://github.com/PyLabRobot/pylabrobot/pull/138). Mixing liquids is not supported yet. I was considering rewriting the `Liquid` API for this, so that we can say like `solution = Mixture({Liquid.WATER: 0.8, Liquid.ETHANOL})`

---

<div class="post-metadata">

**Author:** ![cwehrhan](https://discuss.pylabrobot.org/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@cwehrhan](https://discuss.pylabrobot.org/u/cwehrhan)\
**Post date:** [January 11, 2025, 4:16am UTC](https://discuss.pylabrobot.org/t/missing-deck/111/12 "2025-01-11T04:16:43Z")

</div>

Hey Rick sorry haven’t had time to get back to this.

1. lol I just re-ran the entire script and things are working now, maybe I didn’t hit run all.
2. @CamilloMoschner when doing tubes you’re writing code to fill in reverse order? @rickwierenga I understand wanting to match physical reality, but none of the other assets follow this reality so not sure if it makes sense?
3. That would definitely be cool

---

<div class="post-metadata">

**Author:** ![rickwierenga](https://discuss.pylabrobot.org/user_avatar/discuss.pylabrobot.org/rickwierenga/32/963_2.png) [@rickwierenga](https://discuss.pylabrobot.org/u/rickwierenga)\
**Post date:** [January 11, 2025, 4:33am UTC](https://discuss.pylabrobot.org/t/missing-deck/111/13 "2025-01-11T04:33:24Z")

</div>

> [@cwehrhan](#):
>
> I understand wanting to match physical reality, but none of the other assets follow this reality so not sure if it makes sense?

which assets don’t match physical reality? we should probably fix those.

(If you’re talking about numbering along the y-axis, it’s a choice. In physical reality there is no right answer. The transposed excel-style notation is too common for us to fix/match the star y-axis. for carriers, i was willing to be bold and use what makes more sense to me.)

---

<div class="post-metadata">

**Author:** ![cwehrhan](https://discuss.pylabrobot.org/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@cwehrhan](https://discuss.pylabrobot.org/u/cwehrhan)\
**Post date:** [January 11, 2025, 4:51am UTC](https://discuss.pylabrobot.org/t/missing-deck/111/14 "2025-01-11T04:51:19Z")

</div>

Sorry I’m saying that plates, tube carriers (assets), and channels are numbered from back to front. Isn’t a plate carrier just a big tube carrier with many little tubes in it? I know it makes sense from the instrument having 0,0,0. It just seems like the odd to me since everything else is the opposite way

---

<div class="post-metadata">

**Author:** ![rickwierenga](https://discuss.pylabrobot.org/user_avatar/discuss.pylabrobot.org/rickwierenga/32/963_2.png) [@rickwierenga](https://discuss.pylabrobot.org/u/rickwierenga)\
**Post date:** [January 11, 2025, 2:43pm UTC](https://discuss.pylabrobot.org/t/missing-deck/111/15 "2025-01-11T14:43:58Z")

</div>

tube carriers are labeled from the front (0) to the back, like other carriers. as far as i know, plates & tip racks and channels are the only things labeled from the back to the front. these are the choices i made for plr, and this is what it is now 🤷‍♂️
