Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeseries fonctionalité essentielle #12

Merged
merged 27 commits into from
Feb 20, 2023
Merged

timeseries fonctionalité essentielle #12

merged 27 commits into from
Feb 20, 2023

Conversation

Beauprel
Copy link
Contributor

@Beauprel Beauprel commented Feb 6, 2023

  • fichier timeseries. py : fonction timeseries
  • fichier util_fcts.py : fonctions utilitaires

Fonctionnalité

  • détecte les ensembles Xclim percentiles et statistiques
  • assigne les éléments textuels des graphiques à des attributs des objets Xarray (avec valeurs par défaut)
  • convertis calendriers CFtime à calendriers standard
  • plusieurs options de légende

Notes

  • pas encore de travail effectué sur les couleurs, style, traduction, logo Ouranos
  • voir Issues pour liste de problèmes potentiels et limitations

@Beauprel Beauprel self-assigned this Feb 6, 2023
@sarahclaude sarahclaude self-requested a review February 6, 2023 19:10
Copy link
Contributor

@juliettelavoie juliettelavoie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Première ronde de commentaires:
En général, c'est très bien ! La plupart de mes commentaires pour l'instant sont sur le style. Je n'ai pas eu le temps de tester encore.

spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/util_fcts.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@sarahclaude sarahclaude left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je n'ai pas encore testé la fonction.
Donc, tout ce qui serait à ajouter à la fonction time_series serait une option de logo, la traduction et les couleurs RCP / SSP?

spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/util_fcts.py Outdated Show resolved Hide resolved
spirograph/matplotlib/util_fcts.py Outdated Show resolved Hide resolved
spirograph/matplotlib/util_fcts.py Outdated Show resolved Hide resolved
spirograph/matplotlib/util_fcts.py Outdated Show resolved Hide resolved
spirograph/matplotlib/util_fcts.py Outdated Show resolved Hide resolved
spirograph/matplotlib/util_fcts.py Outdated Show resolved Hide resolved
spirograph/matplotlib/util_fcts.py Outdated Show resolved Hide resolved
spirograph/matplotlib/util_fcts.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
@Beauprel
Copy link
Contributor Author

Beauprel commented Feb 9, 2023

Je n'ai pas encore testé la fonction. Donc, tout ce qui serait à ajouter à la fonction time_series serait une option de logo, la traduction et les couleurs RCP / SSP?

Reste aussi à ajouter la fonctionnalité pour les Datasets avec centiles

- Simplified how xlabel 'time' is assigned
- Changed default-setting method for use_attrs
- Added support for Dataset with multiple percentile ensembles
- minor name updates
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/util_fcts.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
spirograph/matplotlib/timeseries.py Outdated Show resolved Hide resolved
- added support for climate ensembles
- added utils plot_realizations() and fill_between_label()
- etc.
- moved function from utils to plot
Copy link
Contributor

@juliettelavoie juliettelavoie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super! Je pense qu'on a une bonne base!

spirograph/matplotlib/plot.py Outdated Show resolved Hide resolved
spirograph/matplotlib/plot.py Outdated Show resolved Hide resolved
spirograph/matplotlib/plot.py Outdated Show resolved Hide resolved
spirograph/matplotlib/plot.py Outdated Show resolved Hide resolved
spirograph/matplotlib/plot.py Outdated Show resolved Hide resolved
spirograph/matplotlib/plot.py Outdated Show resolved Hide resolved
Co-authored-by: juliettelavoie <juliette.lavoie@hotmail.ca>
@Beauprel Beauprel merged commit a061187 into main Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants