Read LB JSON objects and get comfortable/uncomfortable times
@jamesramsden-bh ya está trabajando en esto.
Desde el 14/4/2022.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 3
- Forks
- 2
- Merge medio
- 1 d 1 h
- PR fusionados (30 d)
- 1
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de BHoM/LadybugTools_Toolkit
-
Queenbee path fails to resolve with default resolverPosiblemente ocupada @jamesramsden-bh la tomó hace 34 días. Abiertotype:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
BHoM/LadybugTools_Toolkit#361 ·
-
type:feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
BHoM/LadybugTools_Toolkit#339 ·
-
Grasshopper Sample ScriptsQuizá libre de nuevo @Felix-Mallinder la tomó hace 82 días y no hay ningún pull request abierto. Abiertotype:feature
BHoM/LadybugTools_Toolkit#352 · 1 asignado ·
-
Upgrade pollination versionQuizá libre de nuevo @Tom-Kingstone la tomó hace 131 días y no hay ningún pull request abierto. Abiertotype:external-api-changes
BHoM/LadybugTools_Toolkit#349 · 1 asignado ·
-
Features from lbttkQuizá libre de nuevo @Tom-Kingstone la tomó hace 245 días y no hay ningún pull request abierto. Abiertosize:XL type:feature
BHoM/LadybugTools_Toolkit#335 · 1 asignado ·
Todos los issues de BHoM/LadybugTools_Toolkit
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
UKGovernmentBEIS/optstop#10 ·
-
maintenance
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
pollen-robotics/reachy_mini#1508 ·
Los mantenedores suelen responder en 1 día
-
[BUG] `cloud-keys.env` values retain enclosing quotes causing 401 Unauthorized, and missing utf-8 encoding crashes on WindowsPosiblemente ocupada @divyanshu07-code la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
open-jarvis/OpenJarvis#1192 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
sylvainmetayer/homelab#851 ·
Los mantenedores suelen responder en 1 día