Skip to content

Conversation

@aleeciu
Copy link
Collaborator

@aleeciu aleeciu commented Oct 27, 2022

Changes proposed in this PR:

  • Add types hints to TropCyclone.init, classmethods and functions therein

PR Author Checklist

PR Reviewer Checklist

@aleeciu aleeciu changed the title add type hints Feature/init trop cyclone Oct 27, 2022
@chahank chahank requested a review from tovogt October 28, 2022 11:46
@tovogt
Copy link
Collaborator

tovogt commented Oct 28, 2022

I think we should wait for the Hazard base class to be ready before continuing here.

@chahank
Copy link
Member

chahank commented Oct 28, 2022

I agree!

emanuel-schmid and others added 3 commits November 2, 2022 16:30
# Conflicts:
#	climada/hazard/trop_cyclone.py

Conflicts resolved manually.
In particular the radius arguments in Holland methods is given in 'km' (default value and doc-string)
@tovogt
Copy link
Collaborator

tovogt commented Nov 14, 2022

I think this is ready to be merged. 🎉

@emanuel-schmid
Copy link
Collaborator

🥳

@emanuel-schmid emanuel-schmid merged commit 76cd4e2 into develop Nov 14, 2022
@emanuel-schmid emanuel-schmid deleted the feature/init_trop_cyclone branch November 14, 2022 10:05
simonameiler pushed a commit that referenced this pull request Aug 24, 2023
* add type hints

* trop_cyclone: order imports

* trop_cyclone: remove trailing whitespaces

* trop_cyclone: np.array -> np.ndarray

* trop_cyclone: pass kwargs to Hazard base class

* TropCyclone: more type hinting

Co-authored-by: Thomas Vogt <thomas.vogt@pik-potsdam.de>
Co-authored-by: emanuel-schmid <schmide@ethz.ch>
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.

5 participants