You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aiodpc.i18n: a text for every value of the models in English, Italian,
Brazilian Portuguese, French, German and Spanish, checked by the tests so
that none is missing. Translator("pt-BR") tells any value as a label
(tell(AlertLevel.YELLOW), "Alerta amarelo"), a risk with its risk types
(tell.risk(risk)), the DPC description of a risk, day or assessment
(tell.description(risk), "Criticidade ordinária para risco
hidrogeológico") and a phenomenon with its distance and direction
(tell.phenomenon(phenomenon)). In Italian the texts are those DPC writes;
a DPC text aiodpc does not recognise is returned as it is.
Criticality and the criticality of RiskAssessment, CriticalityDay
and Risk: the DPC description read into an enum ("Ordinaria" is Criticality.ORDINARY). Every DPC text since 2020 is one of four
criticalities, each always with the same alert level.
mapped_risk of CriticalityDay and Risk: the one risk the DPC summary
of a zone names, the one its map shows, even when other risks have the same
level (Risk.types has all of them).
CompassPoint: the 16 compass points, translated like the other values.
Language.of(tag): the language of a tag such as "pt_BR" or "it-IT".
A tutorial in the README and in examples/tutorial.ipynb, from one question
about one place to the map of Italy and the same notice in six languages.
code and from_code() on every value: AlertLevel.YELLOW.code is 2, RiskType.from_code(3) is RiskType.HYDROGEOLOGICAL. The codes DPC
publishes are kept (id_fenomeno, id_classificazione); the others are
listed in the data dictionary and never change once released.
CriticalityMap.compact() and VigilanceMap.compact()
(aiodpc.compact): a whole bulletin as records of numeric codes, with the
zones in a ZoneTable whose fingerprint changes only when the zones do.
A day of both bulletins is about 13 kB of CSV instead of 19 MB of GeoJSON.
docs/data-dictionary.xlsx: every field of the DPC files and every value
they take, with a numeric code, the text DPC writes and its translations.
docs/study/: a study of the DPC data, in English and Italian, with the
measurements and a proposal of a lighter data model.
Changed
Phenomenon.direction is a CompassPoint instead of a str. It is still
equal to its abbreviation (direction == "WNW"); type checkers ask for CompassPoint.WNW where code builds a Phenomenon.