{
  "id": 556623,
  "title": "Why are the zarr keys strings when run on local computer?",
  "url": "/competitions/czii-cryo-et-object-identification/discussion/556623",
  "author_name": "",
  "post_date": "2025-01-14T09:30:27.717358700Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>It's not really important but I just want to know so I'm asking…</p>\n<p>I downloaded the data and tried to see it on my local computer using the below notebook.</p>\n<p><a href=\"https://www.kaggle.com/code/davidlist/experiment-ts-6-4-visualization\" target=\"_blank\">https://www.kaggle.com/code/davidlist/experiment-ts-6-4-visualization</a></p>\n<p>Below are the codes in the 4th cell of the notebook, and the keys are integers (0, 1, 2).</p>\n<p>print(z_ts_6_4)<br>\nprint(z_ts_6_4[0].shape)<br>\nprint(z_ts_6_4[1].shape)<br>\nprint(z_ts_6_4[2].shape)</p>\n<p>But when I read the downloaded data on my local computer, the keys are strings.</p>\n<p>print(list(train_z_ts_6_4_denoised.keys())) &lt;- input<br>\n['0', '1', '2'] &lt;- output</p>\n<p>And I have to do this or it throws error</p>\n<p>print(z_ts_6_4)<br>\nprint(z_ts_6_4['0'].shape)<br>\nprint(z_ts_6_4['1'].shape)<br>\nprint(z_ts_6_4['2'].shape)</p>\n<p>Why??</p>",
  "messages": [
    {
      "id": "3096344",
      "postDate": "01/14/2025 09:30:27",
      "content": "<p>It's not really important but I just want to know so I'm asking…</p>\n<p>I downloaded the data and tried to see it on my local computer using the below notebook.</p>\n<p><a href=\"https://www.kaggle.com/code/davidlist/experiment-ts-6-4-visualization\" target=\"_blank\">https://www.kaggle.com/code/davidlist/experiment-ts-6-4-visualization</a></p>\n<p>Below are the codes in the 4th cell of the notebook, and the keys are integers (0, 1, 2).</p>\n<p>print(z_ts_6_4)<br>\nprint(z_ts_6_4[0].shape)<br>\nprint(z_ts_6_4[1].shape)<br>\nprint(z_ts_6_4[2].shape)</p>\n<p>But when I read the downloaded data on my local computer, the keys are strings.</p>\n<p>print(list(train_z_ts_6_4_denoised.keys())) &lt;- input<br>\n['0', '1', '2'] &lt;- output</p>\n<p>And I have to do this or it throws error</p>\n<p>print(z_ts_6_4)<br>\nprint(z_ts_6_4['0'].shape)<br>\nprint(z_ts_6_4['1'].shape)<br>\nprint(z_ts_6_4['2'].shape)</p>\n<p>Why??</p>",
      "rawMarkdown": "It's not really important but I just want to know so I'm asking...\n\nI downloaded the data and tried to see it on my local computer using the below notebook.\n\nhttps://www.kaggle.com/code/davidlist/experiment-ts-6-4-visualization\n\nBelow are the codes in the 4th cell of the notebook, and the keys are integers (0, 1, 2).\n\nprint(z_ts_6_4)\nprint(z_ts_6_4[0].shape)\nprint(z_ts_6_4[1].shape)\nprint(z_ts_6_4[2].shape)\n\nBut when I read the downloaded data on my local computer, the keys are strings.\n\nprint(list(train_z_ts_6_4_denoised.keys())) <- input\n['0', '1', '2'] <- output\n\nAnd I have to do this or it throws error\n\nprint(z_ts_6_4)\nprint(z_ts_6_4['0'].shape)\nprint(z_ts_6_4['1'].shape)\nprint(z_ts_6_4['2'].shape)\n\nWhy??",
      "votes": null
    },
    {
      "id": "3096477",
      "postDate": "01/14/2025 12:46:15",
      "content": "<p>Are you running Windows?  Wonder if maybe it's a CR/LF thing, though offhand I can't explain why that would cause the behavior you're seeing.</p>",
      "rawMarkdown": "Are you running Windows?  Wonder if maybe it's a CR/LF thing, though offhand I can't explain why that would cause the behavior you're seeing.",
      "votes": null
    },
    {
      "id": "3096609",
      "postDate": "01/14/2025 14:38:24",
      "content": "<p>Yup, it's Windows. You are probably right since you guessed it right.</p>",
      "rawMarkdown": "Yup, it's Windows. You are probably right since you guessed it right.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3096477,
      "author_name": "davidlist",
      "author_url": "",
      "post_date": "01/14/2025 12:46:15",
      "content": "<p>Are you running Windows?  Wonder if maybe it's a CR/LF thing, though offhand I can't explain why that would cause the behavior you're seeing.</p>",
      "votes": null,
      "replies": [
        {
          "id": 3096609,
          "author_name": "max6296",
          "author_url": "",
          "post_date": "01/14/2025 14:38:24",
          "content": "<p>Yup, it's Windows. You are probably right since you guessed it right.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "3096344": "It's not really important but I just want to know so I'm asking...\n\nI downloaded the data and tried to see it on my local computer using the below notebook.\n\nhttps://www.kaggle.com/code/davidlist/experiment-ts-6-4-visualization\n\nBelow are the codes in the 4th cell of the notebook, and the keys are integers (0, 1, 2).\n\nprint(z_ts_6_4)\nprint(z_ts_6_4[0].shape)\nprint(z_ts_6_4[1].shape)\nprint(z_ts_6_4[2].shape)\n\nBut when I read the downloaded data on my local computer, the keys are strings.\n\nprint(list(train_z_ts_6_4_denoised.keys())) <- input\n['0', '1', '2'] <- output\n\nAnd I have to do this or it throws error\n\nprint(z_ts_6_4)\nprint(z_ts_6_4['0'].shape)\nprint(z_ts_6_4['1'].shape)\nprint(z_ts_6_4['2'].shape)\n\nWhy??",
    "3096477": "Are you running Windows?  Wonder if maybe it's a CR/LF thing, though offhand I can't explain why that would cause the behavior you're seeing.",
    "3096609": "Yup, it's Windows. You are probably right since you guessed it right."
  },
  "source": "meta"
}