reichlab / forecast-repository

Codebase for Zoltar forecast repository
https://zoltardata.com/
GNU General Public License v3.0
6 stars 3 forks source link

problem adding a season_name to existing timezero #346

Closed nickreich closed 1 year ago

nickreich commented 1 year ago

I am trying to add a season to an existing project that has two timezeroes. I downloaded the config file and edited two lines, where there was a

      "is_season_start": false

I changed it to be

      "is_season_start": true,
      "season_name": "2022-2023"

But when I tried to upload this I got the following error: image

Full edited JSON config file included here

{
  "name": "NBA predictions",
  "is_public": false,
  "description": "Pre-season predictions of NBA victories.",
  "home_url": "",
  "logo_url": "",
  "core_data": "",
  "viz_options": null,
  "units": [
    {
      "id": 4399,
      "url": "https://zoltardata.com/api/unit/4399/",
      "name": "atlanta-hawks",
      "abbreviation": "atl"
    },
    {
      "id": 4401,
      "url": "https://zoltardata.com/api/unit/4401/",
      "name": "brooklyn-nets",
      "abbreviation": "bkn"
    },
    {
      "id": 4400,
      "url": "https://zoltardata.com/api/unit/4400/",
      "name": "boston-celtics",
      "abbreviation": "bos"
    },
    {
      "id": 4402,
      "url": "https://zoltardata.com/api/unit/4402/",
      "name": "charlotte-hornets",
      "abbreviation": "cha"
    },
    {
      "id": 4403,
      "url": "https://zoltardata.com/api/unit/4403/",
      "name": "chicago-bulls",
      "abbreviation": "chi"
    },
    {
      "id": 4404,
      "url": "https://zoltardata.com/api/unit/4404/",
      "name": "cleveland-cavaliers",
      "abbreviation": "cle"
    },
    {
      "id": 4405,
      "url": "https://zoltardata.com/api/unit/4405/",
      "name": "dallas-mavericks",
      "abbreviation": "dal"
    },
    {
      "id": 4406,
      "url": "https://zoltardata.com/api/unit/4406/",
      "name": "denver-nuggets",
      "abbreviation": "den"
    },
    {
      "id": 4407,
      "url": "https://zoltardata.com/api/unit/4407/",
      "name": "detroit-pistons",
      "abbreviation": "det"
    },
    {
      "id": 4408,
      "url": "https://zoltardata.com/api/unit/4408/",
      "name": "golden-state-warriors",
      "abbreviation": "gs"
    },
    {
      "id": 4409,
      "url": "https://zoltardata.com/api/unit/4409/",
      "name": "houston-rockets",
      "abbreviation": "hou"
    },
    {
      "id": 4410,
      "url": "https://zoltardata.com/api/unit/4410/",
      "name": "indiana-pacers",
      "abbreviation": "ind"
    },
    {
      "id": 4411,
      "url": "https://zoltardata.com/api/unit/4411/",
      "name": "los-angeles-clippers",
      "abbreviation": "lac"
    },
    {
      "id": 4412,
      "url": "https://zoltardata.com/api/unit/4412/",
      "name": "los-angeles-lakers",
      "abbreviation": "lal"
    },
    {
      "id": 4413,
      "url": "https://zoltardata.com/api/unit/4413/",
      "name": "memphis-grizzlies",
      "abbreviation": "mem"
    },
    {
      "id": 4414,
      "url": "https://zoltardata.com/api/unit/4414/",
      "name": "miami-heat",
      "abbreviation": "mia"
    },
    {
      "id": 4415,
      "url": "https://zoltardata.com/api/unit/4415/",
      "name": "milwaukee-bucks",
      "abbreviation": "mil"
    },
    {
      "id": 4416,
      "url": "https://zoltardata.com/api/unit/4416/",
      "name": "minnesota-timberwolves",
      "abbreviation": "min"
    },
    {
      "id": 4417,
      "url": "https://zoltardata.com/api/unit/4417/",
      "name": "new-orleans-pelicans",
      "abbreviation": "no"
    },
    {
      "id": 4418,
      "url": "https://zoltardata.com/api/unit/4418/",
      "name": "new-york-knicks",
      "abbreviation": "ny"
    },
    {
      "id": 4419,
      "url": "https://zoltardata.com/api/unit/4419/",
      "name": "oklahoma-city-thunder",
      "abbreviation": "okc"
    },
    {
      "id": 4420,
      "url": "https://zoltardata.com/api/unit/4420/",
      "name": "orlando-magic",
      "abbreviation": "orl"
    },
    {
      "id": 4421,
      "url": "https://zoltardata.com/api/unit/4421/",
      "name": "philadelphia-76ers",
      "abbreviation": "phi"
    },
    {
      "id": 4422,
      "url": "https://zoltardata.com/api/unit/4422/",
      "name": "phoenix-suns",
      "abbreviation": "phx"
    },
    {
      "id": 4423,
      "url": "https://zoltardata.com/api/unit/4423/",
      "name": "portland-trail-blazers",
      "abbreviation": "por"
    },
    {
      "id": 4425,
      "url": "https://zoltardata.com/api/unit/4425/",
      "name": "san-antonio-spurs",
      "abbreviation": "sa"
    },
    {
      "id": 4424,
      "url": "https://zoltardata.com/api/unit/4424/",
      "name": "sacramento-kings",
      "abbreviation": "sac"
    },
    {
      "id": 4426,
      "url": "https://zoltardata.com/api/unit/4426/",
      "name": "toronto-raptors",
      "abbreviation": "tor"
    },
    {
      "id": 4427,
      "url": "https://zoltardata.com/api/unit/4427/",
      "name": "utah-jazz",
      "abbreviation": "uta"
    },
    {
      "id": 4428,
      "url": "https://zoltardata.com/api/unit/4428/",
      "name": "washington-wizards",
      "abbreviation": "was"
    }
  ],
  "targets": [
    {
      "id": 3465,
      "url": "https://zoltardata.com/api/target/3465/",
      "name": "win finals",
      "type": "binary",
      "description": "Whether or not a team will win the NBA finals",
      "outcome_variable": "win_finals",
      "is_step_ahead": false
    },
    {
      "id": 3464,
      "url": "https://zoltardata.com/api/target/3464/",
      "name": "make playoffs",
      "type": "binary",
      "description": "Whether or not a team will make the playoffs",
      "outcome_variable": "make_playoffs",
      "is_step_ahead": false
    },
    {
      "id": 3462,
      "url": "https://zoltardata.com/api/target/3462/",
      "name": "season wins",
      "type": "discrete",
      "description": "Total number of wins in the regular season",
      "outcome_variable": "wins",
      "is_step_ahead": false,
      "range": [
        0,
        100
      ],
      "cats": []
    }
  ],
  "timezeros": [
    {
      "id": 2640,
      "url": "https://zoltardata.com/api/timezero/2640/",
      "timezero_date": "2022-10-13",
      "data_version_date": null,
      "is_season_start": false
    },
    {
      "id": 2636,
      "url": "https://zoltardata.com/api/timezero/2636/",
      "timezero_date": "2022-10-01",
      "data_version_date": null,
      "is_season_start": true,
      "season_name": "2022-2023"
    }
  ]
}