`aggregate`: explicit feedback about un-aggregatable outcome
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
Piste de recherche
Commencez par le point d’entrée cf.aggregate et reproduisez l’exemple avec cf.example_fields(), en vérifiant d’abord le résultat inchangé, puis la sortie avec verbose=2. Done doit inclure un récapitulatif explicite lorsqu’un FieldList ne peut pas être davantage agrégé, avec des indications sur l’assouplissement des conditions d’agrégation si cela est approprié, tout en conservant les retours existants pour chaque champ.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
(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.".
- Langage dominant
- Python
- Étoiles
- 151
- Forks
- 23
- Merge moyen
- 1 j 2 h
- PR mergées (30 j)
- 1
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de NCAS-CMS/cf-python
-
installation
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
-
Attempt at unsupported conservative 3D mesh regriddingPeut-être à nouveau libre @sadielbartholomew l’a pris il y a 40 jours, et aucune pull request n’est ouverte. Ouvertebug?
-
error from netCDF in cf.writeOuvertebug
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
-
API review (4.0.0) documentation
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
-
Testing of to/from xarrayOuverteenhancement xarray
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
Toutes les issues de NCAS-CMS/cf-python
Issues similaires
-
documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
Les mainteneurs répondent en général sous 1 jour
-
good first issue module-baseline needs triage ux
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
darnitdevorg/darnit#650 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
nyjc-computing/campus#938 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
nf-osi/nf-metadata-dictionary#1027 ·
Les mainteneurs répondent en général sous 1 jour
-
bug documentation
Difficulté 1/5 Moins d'une heure Accessibilité débutants 92/100
qatrackplus/qatrackplus#913 ·
Les mainteneurs répondent en général sous 3 jours