`aggregate`: explicit feedback about un-aggregatable outcome
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia dal punto di ingresso cf.aggregate e riproduci l’esempio con cf.example_fields(), verificando prima il risultato invariato e poi l’output con verbose=2. Done deve includere un riepilogo esplicito quando un FieldList non è ulteriormente aggregabile, con indicazioni su come allentare le condizioni di aggregazione se appropriato, mantenendo al contempo il feedback esistente per ogni campo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
(In our summit today) a user has conveyed that they would like to get explicit notification when a call to cf.aggregate doesn't aggregate the input any further, e.g for the case of h from the example below unless verbosity is set to at least level of 2/info there is nothing that indicates that the entire FieldList was not aggregatable further, i.e. aggregation didn't work, and even at level 2 you have to count the fields that are mentioned as being unaggregatable or check the length of the resultant FieldList to confirm this.
I agree that the above is not ideal since lack of combination of fields from the input could easily be seen as a 'failure' outcome and therefore to me merits at least a 3/warning level output, with a summary line to cover the whole FieldList result and not just each field individually as per the log output from 2.
Example
>>> import cf
>>> f = cf.example_fields()
>>> g = cf.aggregate(f) # pre-aggregate down
>>>
>>> len(g)
11
>>> h = cf.aggregate(g) # won't aggregate further
>>> len(h)
11
>>> h = cf.aggregate(g, verbose=2) # won't aggregate further
Unaggregatable 'air_temperature' has been output: <CF AuxiliaryCoordinate: long_name=Grid latitude name(10) > has no identity or no data
Unaggregatable 'precipitation_flux' has been output: <CF AuxiliaryCoordinate: cf_role=timeseries_id(4) > has no identity or no data
Unaggregatable 'air_temperature' has been output: <CF AuxiliaryCoordinate: cf_role=timeseries_id(3) > has no identity or no data
Unaggregatable 'precipitation_amount' has been output: <CF AuxiliaryCoordinate: cf_role=timeseries_id(2) > has no identity or no data
Unaggregatable 'mole_fraction_of_ozone_in_air' has been output: <CF AuxiliaryCoordinate: cf_role=trajectory_id(1) > has no identity or no data
My suggestion is, specifically, that h = cf.aggregate(g) # won't aggregate further will here report a line stating something along the lines of "FieldList was not aggregatable." and perhaps we can make the suggestion of (after the previous) "Try applying further keywords to relax the aggregation conditions if you wish to try to combine the fields further.".
- Lingua principale
- Python
- Stelle
- 151
- Fork
- 23
- Merge medio
- 21h 29m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NCAS-CMS/cf-python
-
Remove abandoned `cf.etc` directoryForse già presa @sadielbartholomew l’ha presa 26 giorni fa. Apertacode tidy
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Attempt at unsupported conservative 3D mesh regriddingForse già presa @sadielbartholomew l’ha presa 24 giorni fa. Apertabug?
-
Release: migrate from deprecated build commandForse già presa @sadielbartholomew l’ha presa 26 giorni fa. Apertarelease
-
Remove support for Python 3.10 (EOL)Forse già presa @sadielbartholomew l’ha presa 26 giorni fa. Apertaenhancement
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
Tutte le issue di NCAS-CMS/cf-python
Issue simili
-
Claiming namespace apexdevApertanamespace operations
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
EclipseFdn/open-vsx.org#13737 ·
I maintainer di solito rispondono entro 1 giorno
-
Zero-token evaluations are treated as missing cost in selectionForse già presa @sylvesterkaczmarek l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
google-research/rrsi#6 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
aws-samples/sample-aws-genai-db-modernizer#294 ·
I maintainer di solito rispondono entro 1 giorno
-
feedback simulation workshop
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
githubnext/gh-aw-workshop#4174 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
WingedGuardian/GENesis-AGI#2852 ·
I maintainer di solito rispondono entro 1 giorno