Read LB JSON objects and get comfortable/uncomfortable times
@jamesramsden-bh がすでに取り組んでいます。
2022年4月14日 から。
評価
この issue はまだ評価されていません。
説明
As part of project work with @charliebrookerBH , it was necessary to open up a very large (270MB) JSON file, containing LB objects and outputted by LB Tools. This JSON object contained a collection of objects, each corresponding to a point in a model. With each point, 8760 values were associated with it, each value corresponding to -1, 0, or 1 (meaning too cold, just right, too hot). The desired output was, for each point, to filter for a timerange (either 0800-1800 or 0900-2200) and then, within that timerange, get the percentage of time that point experienced too hot, too cold, or just right.
This was achieved with the attached .cs code using .NET 6. See attached zip file below for this code.
This code should be translated into .NET Framework 4.7.2, tidied, and incorporated into the BHoM. The final product should allow us to load in a LB-generated JSON file, and get a collection of 3 values for each point.
Note the following 'fix' that was required to prevent the deserialiser from crashing, which is believed to be due LB producing non-compliant JSON files:
- The start of the JSON file will read something like
[{"values": [0.0, 0.0, 0.0, 0.0, 0.0,. The JSON deserialiser likes to have a name for the collection - we fixed this by prefixing a name, i.e.{"hello" : [{"values": [0.0, 0.0, 0.0, 0.0, 0.0, - A final curly bracket was also needed at the end of the file. i.e. we changed
"type": "HourlyContinuous"}]to"type": "HourlyContinuous"}]}
However, this may be a moot point, as a different JSON deserialiser will be required to be BHoM compliant to 4.7.2 anyway!
R&D Wishlist item 00375.
- 主要言語
- Python
- スター
- 3
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
BHoM/LadybugTools_Toolkit のほかの issue
-
Queenbee path fails to resolve with default resolver対応中かも @jamesramsden-bh が 36 日前に担当しました。 オープンtype:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
BHoM/LadybugTools_Toolkit#361 ·
-
type:feature
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
BHoM/LadybugTools_Toolkit#339 ·
-
evaporative_cooling_potential_epw missing comma when calling the series version of the method対応中かも @Tom-Kingstone が 1 日前に担当しました。 オープンtype:bug
BHoM/LadybugTools_Toolkit#364 · 担当者 1 名 ·
-
Grasshopper Sample Scripts再び着手できるかも @Felix-Mallinder が 84 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンtype:feature
BHoM/LadybugTools_Toolkit#352 · 担当者 1 名 ·
-
Upgrade pollination version対応中かも @Tom-Kingstone が 133 日前に担当しました。 オープンtype:external-api-changes
BHoM/LadybugTools_Toolkit#349 · 担当者 1 名 ·
BHoM/LadybugTools_Toolkit の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
521xueweihan/HelloGitHub#4150 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
aws-samples/sample-per-model-bedrock#595 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug connectors
難易度 1/5 1時間未満 初心者へのやさしさ 67/100
pyinfra-dev/pyinfra#2036 ·
メンテナーはふだん 9 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信