{
  "id": 93126,
  "title": "not enough values to unpack (expected 3, got 0)",
  "url": "/competitions/histopathologic-cancer-detection/discussion/93126",
  "author_name": "",
  "post_date": "2019-05-23T12:55:36.576117100Z",
  "votes": null,
  "comment_count": 6,
  "views": 0,
  "content": "<p>I am getting error in the following code.Any help would be great</p>\n\n<p>```\nValueError                                Traceback (most recent call last)</p>",
  "messages": [
    {
      "id": "535790",
      "postDate": "05/23/2019 12:55:36",
      "content": "<p>I am getting error in the following code.Any help would be great</p>\n\n<p>```\nValueError                                Traceback (most recent call last)</p>",
      "rawMarkdown": "I am getting error in the following code.Any help would be great\n\n```\nValueError                                Traceback (most recent call last)",
      "votes": null
    },
    {
      "id": "536006",
      "postDate": "05/23/2019 19:27:58",
      "content": "<p><a href=\"/aravindsasidharan\">@aravindsasidharan</a> Can you post a snippet of your error log/code that may have caused the error?</p>",
      "rawMarkdown": "aravindsasidharan Can you post a snippet of your error log/code that may have caused the error?",
      "votes": null
    },
    {
      "id": "536198",
      "postDate": "05/24/2019 05:01:12",
      "content": "<p> in ()\n      7 for i, idx in enumerate(shuffled_data[shuffled_data['label'] == 0]['id'][:5]):\n      8     path = os.path.join(train_path, idx)\n----&gt; 9     ax[0,i].imshow(readImage(path + '.tif'))\n     10     # Create a Rectangle patch\n     11     box = patches.Rectangle((32,32),32,32,linewidth=4,edgecolor='b',facecolor='none', linestyle=':', capstyle='round')</p>\n\n<p> in readImage(path)\n      3     bgr_img =cv2.imread(path)\n      4 \n----&gt; 5     b,g,r = cv2.split(bgr_img)\n      6 \n      7     rgb_img = cv2.merge([r,g,b])</p>",
      "rawMarkdown": "",
      "votes": null
    },
    {
      "id": "536202",
      "postDate": "05/24/2019 05:05:28",
      "content": "<p>thanks for the help</p>",
      "rawMarkdown": "thanks for the help",
      "votes": null
    },
    {
      "id": "536230",
      "postDate": "05/24/2019 05:37:56",
      "content": "<p><a href=\"/morinja\">@morinja</a> Thanks</p>",
      "rawMarkdown": "morinja Thanks",
      "votes": null
    },
    {
      "id": "536638",
      "postDate": "05/24/2019 22:00:37",
      "content": "<p><a href=\"/aravindsasidharan\">@aravindsasidharan</a> Thank you! </p>\n\n<p>I am not certain, but I think your error may be coming from the in() function you are using in the first line. Maybe it is expecting an input of three values in the parentheses and is producing an error because they are empty. Is the in() function from a particular package? If so, we could look at the documentation for that library to find expected parameter input.</p>\n\n<p>Hope this helps!</p>",
      "rawMarkdown": "aravindsasidharan Thank you! \n\nI am not certain, but I think your error may be coming from the in() function you are using in the first line. Maybe it is expecting an input of three values in the parentheses and is producing an error because they are empty. Is the in() function from a particular package? If so, we could look at the documentation for that library to find expected parameter input.\n\nHope this helps!",
      "votes": null
    },
    {
      "id": "539717",
      "postDate": "05/30/2019 12:38:32",
      "content": "<p><a href=\"/morinja\">@morinja</a>  It may be due RGB value as it needs three channels to process the data.Have to check .\nThanks for the help</p>",
      "rawMarkdown": "morinja  It may be due RGB value as it needs three channels to process the data.Have to check .\nThanks for the help",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 536006,
      "author_name": "morinja",
      "author_url": "",
      "post_date": "05/23/2019 19:27:58",
      "content": "<p><a href=\"/aravindsasidharan\">@aravindsasidharan</a> Can you post a snippet of your error log/code that may have caused the error?</p>",
      "votes": null,
      "replies": [
        {
          "id": 536198,
          "author_name": "aravindsasidharan",
          "author_url": "",
          "post_date": "05/24/2019 05:01:12",
          "content": "<p> in ()\n      7 for i, idx in enumerate(shuffled_data[shuffled_data['label'] == 0]['id'][:5]):\n      8     path = os.path.join(train_path, idx)\n----&gt; 9     ax[0,i].imshow(readImage(path + '.tif'))\n     10     # Create a Rectangle patch\n     11     box = patches.Rectangle((32,32),32,32,linewidth=4,edgecolor='b',facecolor='none', linestyle=':', capstyle='round')</p>\n\n<p> in readImage(path)\n      3     bgr_img =cv2.imread(path)\n      4 \n----&gt; 5     b,g,r = cv2.split(bgr_img)\n      6 \n      7     rgb_img = cv2.merge([r,g,b])</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 536202,
          "author_name": "aravindsasidharan",
          "author_url": "",
          "post_date": "05/24/2019 05:05:28",
          "content": "<p>thanks for the help</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 536230,
          "author_name": "aravindsasidharan",
          "author_url": "",
          "post_date": "05/24/2019 05:37:56",
          "content": "<p><a href=\"/morinja\">@morinja</a> Thanks</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 536638,
      "author_name": "morinja",
      "author_url": "",
      "post_date": "05/24/2019 22:00:37",
      "content": "<p><a href=\"/aravindsasidharan\">@aravindsasidharan</a> Thank you! </p>\n\n<p>I am not certain, but I think your error may be coming from the in() function you are using in the first line. Maybe it is expecting an input of three values in the parentheses and is producing an error because they are empty. Is the in() function from a particular package? If so, we could look at the documentation for that library to find expected parameter input.</p>\n\n<p>Hope this helps!</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 539717,
      "author_name": "aravindsasidharan",
      "author_url": "",
      "post_date": "05/30/2019 12:38:32",
      "content": "<p><a href=\"/morinja\">@morinja</a>  It may be due RGB value as it needs three channels to process the data.Have to check .\nThanks for the help</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "535790": "I am getting error in the following code.Any help would be great\n\n```\nValueError                                Traceback (most recent call last)",
    "536006": "aravindsasidharan Can you post a snippet of your error log/code that may have caused the error?",
    "536198": "",
    "536202": "thanks for the help",
    "536230": "morinja Thanks",
    "536638": "aravindsasidharan Thank you! \n\nI am not certain, but I think your error may be coming from the in() function you are using in the first line. Maybe it is expecting an input of three values in the parentheses and is producing an error because they are empty. Is the in() function from a particular package? If so, we could look at the documentation for that library to find expected parameter input.\n\nHope this helps!",
    "539717": "morinja  It may be due RGB value as it needs three channels to process the data.Have to check .\nThanks for the help"
  },
  "source": "meta"
}