Giter Site home page Giter Site logo

code-for-yamaguchi / covid19-yamaguchi-opendata Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 89.43 MB

山口県公認 新型コロナウイルス感染症対策サイト https://yamaguchi.stopcovid19.jp/ 用データ生成スクリプト

License: MIT License

Python 98.45% Dockerfile 1.11% Makefile 0.44%
covid-19 dataset python3

covid19-yamaguchi-opendata's People

Contributors

atososon avatar nisshi-dev avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

atososon

covid19-yamaguchi-opendata's Issues

Makefileを作成

ゴール

  • Makefileで環境構築ができる

概要

dockerコマンドが長く環境構築がめんどくさいため、Makefileでショートカットを設定する

PCR検査人数のデータを追加

山口県の新型コロナウイルス感染症対策室の方から"PCR検査件数のデータを業務の都合上、今後集計しない"との連絡が入ったため、PCR検査件数のデータを廃止し、PCR検査人数のデータに変更する
※PCR検査件数データの廃止作業は、本リポジトリでの変更作業が修了しmasterにpushされた後に行う

例外処理の追加

想定外のデータに対しての処理を十分にコーディングしていないため、追加する

github actionsが実行失敗した際にslackに通知を送る

改善詳細 / Details of Improvement

  • オープンデータのカラムが変更された場合など、github actionsが実行失敗した際にすぐ修正できるようにslackに通知を送るようにする

期待する見せ方・挙動 / Expected behavior

動作環境・ブラウザ / Environment

  • macOS / Windows / Linux / iOS / Android
  • Chrome / Safari / Firefox / Edge / Internet Explorer

データ更新エラーを修正

発生している問題

  • 以下のエラーが発生していることを確認している

Traceback (most recent call last):
File "main.py", line 11, in
dm.validate()
File "/root/dataloader.py", line 122, in validate
jsonschema.validate(self.data[key], self.SCHEMAS[key])
File "/usr/local/lib/python3.7/site-packages/jsonschema/validators.py", line 934, in validate
raise error
jsonschema.exceptions.ValidationError: '入院' is a required property

Failed validating 'required' in schema['properties']['data']['items']:
{'default': {},
'properties': {'入院': {'default': '', 'type': 'integer'},
'全国地方公共団体コード': {'default': '', 'type': 'string'},
'受付_年月日': {'default': '', 'type': 'string'},
'市区町村名': {'default': '', 'type': 'string'},
'死亡': {'default': '', 'type': 'integer'},
'退院': {'default': '', 'type': 'integer'},
'都道府県名 ': {'default': '', 'type': 'string'}},
'required': ['受付_年月日', '入院', '退院', '死亡'],
'type': 'object'}

On instance['data'][0]:
{' 市区町村名 ': '',
' 都道府県名': '山口県',
'入院等': '15',
'全国地方公共団体コード': '350001',
'受付_年月日': '2020/4/15',
'死亡': 0,
'退院': 5}
make: *** [exec] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.