Commit Graph

1922 Commits

Author SHA1 Message Date
Daniel Otto de Mentock 7a405125da added type:ignore statements to Tuple Supportsindex addition in Orientation.disorientation function 2022-02-04 10:57:24 +01:00
Daniel Otto de Mentock 9dad54304c added generic types to remaining non-overwritten rotation functions (exception __mul__) 2022-02-04 09:57:42 +01:00
Daniel Otto de Mentock d1f9e98e3c moved typecheck of __ne__ functions to __eq__
added initial empty runtimeerror to Schmid function

minor corrections
2022-02-03 16:11:09 +01:00
Daniel Otto de Mentock f80de7d0b3 added NumpyRngSeed type to rotation rng_seed objects 2022-02-03 12:04:31 +01:00
Daniel Otto de Mentock df54bf724c Merge branch 'development' of git.damask.mpie.de:damask/DAMASK into typehints_orientation_rotation 2022-02-03 11:19:15 +01:00
Martin Diehl 5d55392425 Merge branch 'thermal-restart' into development 2022-02-03 07:53:05 +01:00
Martin Diehl cf2b22b34a does not exist for older numpy versions 2022-02-03 07:39:38 +01:00
Test User ef390ca916 [skip ci] updated version information after successful test of v3.0.0-alpha5-556-g97f849c09 2022-02-03 03:49:37 +01:00
Sharan d72347fe25 Merge remote-tracking branch 'origin/development' into thermal-restart 2022-02-02 23:07:32 +01:00
Martin Diehl 97f849c098 Merge remote-tracking branch 'origin/typehints_rngseed' into development 2022-02-02 22:45:52 +01:00
Test User 7078b5ec87 [skip ci] updated version information after successful test of v3.0.0-alpha5-552-ga6e78c5b6 2022-02-02 22:07:12 +01:00
Daniel Otto de Mentock 4b2e104f03 added new type for rng_seed in _typehints module 2022-02-02 12:52:59 +01:00
Daniel Otto de Mentock fc8cd6322c adjusted rng_seed type in rotation
adjusted NotImplemented error return in orientation
2022-02-02 12:16:57 +01:00
Daniel Otto de Mentock 3df411469b Added generic type to rotation functions not overwritten by orientation 2022-02-02 12:14:00 +01:00
Daniel Otto de Mentock 71bc92fed0 changed quote layout to single quote Added NotImplemented returnvalue to __eq__ functions 2022-02-02 11:11:59 +01:00
Martin Diehl 6dcf6b972c complaints from prospector (PEP8) 2022-02-02 09:14:41 +01:00
Sharan 1bd654781b tests updated 2022-02-02 00:20:14 +01:00
Daniel Otto de Mentock cb1143a472 changed return type of util.shapeblender and util.shapeshifter from Sequence[SupportsIndex] to Tuple[SupportsIndex, ...]
ignored lines in orientation module that attempt to pass objects of type 
Tuple[SupportsIndex, ...] to np.broadcast_to()
2022-02-01 18:38:49 +01:00
Daniel Otto de Mentock ef051ceef9 Merge branch 'development' of git.damask.mpie.de:damask/DAMASK into typehints_orientation_rotation 2022-02-01 11:56:01 +01:00
Test User dc5ab9aee9 [skip ci] updated version information after successful test of v3.0.0-alpha5-545-gad74f5dbe 2022-02-01 11:55:34 +01:00
Daniel Otto de Mentock 086ff42be5 05 Typehints config configmaterial 2022-02-01 07:30:00 +00:00
Test User 98381bff2a [skip ci] updated version information after successful test of v3.0.0-alpha5-542-g225a5d908 2022-01-31 20:14:24 +01:00
Sharan Roongta 225a5d9086 Merge branch '151_typehints-readability' into 'development'
better readabiliy for python

See merge request damask/DAMASK!511
2022-01-31 17:03:24 +00:00
Test User 90b6b0e164 [skip ci] updated version information after successful test of v3.0.0-alpha5-521-g30bf38641 2022-01-31 17:16:01 +01:00
Daniel Otto de Mentock 3105b2c978 added missing return type to grid.get_grain_boundaries function 2022-01-31 12:40:29 +01:00
Martin Diehl 26cd8a46c2 consistent style 2022-01-30 22:36:30 +01:00
Martin Diehl a479c29714 not used 2022-01-30 15:46:26 +01:00
Martin Diehl 9ce4573b12 docstring polishing 2022-01-29 23:16:57 +01:00
Martin Diehl df96110733 some suggestions from prospector/pylint 2022-01-29 22:38:17 +01:00
Martin Diehl ce4591fa29 silence prospector on Python 3.9 2022-01-29 19:15:40 +01:00
Martin Diehl 03b0decfcf starting to configure mypy 2022-01-29 18:32:04 +01:00
Martin Diehl 609f13c590 Python 3.8 magic: The walrus operator ":=" 2022-01-29 18:29:42 +01:00
Daniel Otto de Mentock 33731e4948 adjusted bracket error in from_fiber_component 2022-01-28 15:15:20 +01:00
Daniel Otto de Mentock 83145b815f Merge branch 'typehints_orientation_rotation' of git.damask.mpie.de:damask/DAMASK into typehints_orientation_rotation 2022-01-28 13:40:47 +01:00
Daniel Otto de Mentock 53a0de2271 Adjusted docstrings in rotation
rewrote map(np.radians()) line to one line tuple
2022-01-28 13:40:37 +01:00
Daniel Otto de Mentock 92ac018486 removed superfluous break in function definition in rotation 2022-01-28 13:34:42 +01:00
Daniel Otto de Mentock c3eb5a41b3 Merge branch 'development' into 'typehints_orientation_rotation'
# Conflicts:
#   python/damask/_rotation.py
2022-01-28 09:13:17 +00:00
Daniel Otto de Mentock 81ef865525 [skip ci] moved asterisk to seperate line 2022-01-28 10:11:34 +01:00
Martin Diehl 6fe6be7a34 Merge remote-tracking branch 'origin/development' into 151_typehints-readability 2022-01-27 15:30:41 +01:00
Martin Diehl e2437ee9b5 adjusting style + documentation 2022-01-27 15:29:33 +01:00
Test User 79864818df [skip ci] updated version information after successful test of v3.0.0-alpha5-518-g4fa97b9a3 2022-01-27 15:13:59 +01:00
Daniel Otto de Mentock 19a73bbf3b [skip ci] adjusted function argument alignment with asterisk 2022-01-27 12:14:54 +01:00
Daniel Otto de Mentock a12135fe77 [skip ci] changed function definition to multiline layout for crystal, seeds and tensor module 2022-01-27 10:45:14 +01:00
Martin Diehl 4ca501c73f small changes in logic for type hints 2022-01-27 08:53:27 +01:00
Martin Diehl bc667888ce consistent style 2022-01-26 23:37:07 +01:00
Daniel Otto de Mentock 8e514bf6f4 added missing utils typehint 2022-01-26 16:36:26 +01:00
Daniel Otto de Mentock 0c21b6a8e0 [skip ci] changed almost all function definition lines to multiline for colormap, grid, table, vtk and util modules 2022-01-26 16:25:27 +01:00
Daniel Otto de Mentock 0fe51f58a8 [skip ci] changed almost all function definition lines to multiline 2022-01-26 15:09:09 +01:00
Martin Diehl 03d1a14801 drop support for Python 3.7
does not support Literal from typing and is in maintenance mode
2022-01-26 14:10:21 +01:00
Martin Diehl e8c39077df optional is usually not needed 2022-01-26 06:26:37 +01:00