Commit Graph

2477 Commits

Author SHA1 Message Date
d.mentock d88a139a41 pyflakes bug causes error without comment 2022-06-10 12:03:50 +02:00
d.mentock afbafd1d98 util imports need prefix instead of __all__ definition to prevent namespace pollution 2022-06-10 12:00:54 +02:00
Martin Diehl bcd3d00960 fixed test
this tests should ensure that each Orientation has exactly one symmetrically
equivalent representation. It was not fully correct before and works as expected
after 8fefc46f38
2022-06-10 09:26:15 +02:00
Martin Diehl cdd3b44519 using more precise coefficients also in test
changes in _rotation.py are just cosmetic
2022-06-09 23:54:56 +02:00
Philip Eisenlohr d10516e0b6 fixed typo 2022-06-09 17:23:16 -04:00
Philip Eisenlohr 8fefc46f38 fixed FZ conditions and tightened tolerance to accommodate higher precision "tfit" 2022-06-09 16:38:13 -04:00
Daniel Otto de Mentock 49e40923e5 Merge branch 'numpy_dtype_int_to_int64' into 'development'
Prevent windows overflow error when using numpy dtype=int instead of int64

Closes #175

See merge request damask/DAMASK!598
2022-06-07 10:46:50 +00:00
Philip Eisenlohr 40658a6645 fixed typo in Result.view example 2022-06-05 21:39:06 +00:00
d.mentock b9214fcc6c Prevent windows overflow error when using numpy dtype=int instead of int64 2022-06-02 19:40:18 +02:00
Philip Eisenlohr b7d807db01 re-added default arguments that got lost in last commit 2022-05-25 09:45:37 -04:00
Philip Eisenlohr 4746ac890b Merge branch 'development' into 'empty-table-init'
# Conflicts:
#   python/damask/_table.py
2022-05-25 13:29:23 +00:00
Philip Eisenlohr 1dc5e353c4 Merge branch 'sequence-not-iterable' into 'development'
Need sequence not iterable

See merge request damask/DAMASK!587
2022-05-25 13:25:25 +00:00
Martin Diehl b9cea941cc simplified 2022-05-23 10:37:57 +02:00
Martin Diehl 4b4b455b85 mypy does not understand the setter 2022-05-22 10:08:32 +02:00
Martin Diehl 8039e56882 Merge remote-tracking branch 'origin/development' into typehints_results 2022-05-21 17:46:59 +02:00
d.mentock 570ba8d626 added type: ignore to unrecognized one line if statement 2022-05-20 12:04:34 +02:00
Philip Eisenlohr 92a4883344 consistent and correct type hinting/documentation for comments 2022-05-19 12:19:55 -04:00
Martin Diehl 6b6c2548c5 Merge branch 'development' into initial-V_e 2022-05-19 17:03:09 +02:00
Martin Diehl 556d9d840e specifying V_e is more natural than F_i 2022-05-19 01:15:17 +02:00
Philip Eisenlohr b1b845cb5c allow init of empty table 2022-05-18 18:30:18 -04:00
Philip Eisenlohr 164c7b4bc3 clarified sequence of sequences argument type 2022-05-18 09:31:19 -04:00
Philip Eisenlohr 254524fa38 clarified sequence and iterable argument types 2022-05-18 09:21:32 -04:00
Philip Eisenlohr 18d862cdb0 Merge branch 'table-vtk-help' into 'development'
consistent interface and description

See merge request damask/DAMASK!584
2022-05-17 22:46:58 +00:00
Philip Eisenlohr 8442f0cdd3 accumulate comments 2022-05-17 16:12:00 -04:00
Martin Diehl 6c7f2344da Merge branch 'normalize-to_pole' into 'development'
normalize to_pole output by default

See merge request damask/DAMASK!578
2022-05-15 21:46:27 +00:00
Franz Roters d83f0acf7f Merge branch 'rotation-help-polish' into 'development'
Rotation help improvements

See merge request damask/DAMASK!575
2022-05-13 09:18:35 +00:00
Martin Diehl 90c3b3170d propagate 'normalize' option 2022-05-13 09:54:32 +02:00
Martin Diehl 12cd19554f consistent interface and description 2022-05-13 06:28:52 +02:00
Martin Diehl c8d48d6eb9 Merge branch 'universal-VTK.set' into 'development'
Universal VTK.set

See merge request damask/DAMASK!577
2022-05-13 03:44:11 +00:00
Martin Diehl 6f7e8491bc Merge branch 'Marc2022.1' into 'development'
Marc2022.1

See merge request damask/DAMASK!579
2022-05-12 20:38:25 +00:00
Philip Eisenlohr d18e36ecf0 fixed leftover .add --> .set 2022-05-11 18:54:03 -04:00
Martin Diehl 236a009e2b Merge branch 'universal-table.set' into 'development'
universal Table.set

See merge request damask/DAMASK!576
2022-05-11 22:30:42 +00:00
Philip Eisenlohr 648d17d381 renamed .add to .set to be consistent with Table.set 2022-05-11 18:19:10 -04:00
Philip Eisenlohr 35aa8a9bc6 combine table.add and .set 2022-05-11 09:19:48 -04:00
Franz Roters 53c345f4f1 Merge branch 'from_fiber-improvements' into 'development'
From fiber improvements

See merge request damask/DAMASK!573
2022-05-11 13:13:31 +00:00
Philip Eisenlohr b080e414ae normalize to_pole output by default 2022-05-11 08:55:55 -04:00
Martin Diehl 302f020f63 looks better
at least on Linux
2022-05-11 09:22:05 +02:00
Philip Eisenlohr 75272163cd slight polish of help messages 2022-05-10 15:45:19 -04:00
Philip Eisenlohr c9f344758a use symmetry-aware Miller brackets in Result.add_pole 2022-05-10 15:26:33 -04:00
Martin Diehl 13f4d77791 polishing 2022-05-10 19:17:59 +02:00
Franz Roters 087302a2a4 chnage Marc default version to 2022.1 2022-05-10 09:00:55 +02:00
Daniel Otto de Mentock 7e1d44cd63 Merge branch 'fast-YAML-load' into 'development'
use libyaml-based loader

See merge request damask/DAMASK!570
2022-05-09 10:58:31 +00:00
Martin Diehl f27969caf9 documenting and testing 2022-05-08 23:22:03 +02:00
Martin Diehl d7e7750400 Merge remote-tracking branch 'origin/development' into from_fiber-improvements 2022-05-08 22:21:53 +02:00
Franz Roters 4d131ec7ba Merge branch 'structure-improvements' into 'development'
Directory layout and filename improvements

See merge request damask/DAMASK!567
2022-05-06 07:33:51 +00:00
d.mentock 60190e8992 modified setup.cfg to automatically detect main package and subpackages 2022-05-02 18:00:21 +02:00
Daniel Otto de Mentock 57177303b3 changed string using format in _add_eigenvalue to f-string 2022-05-02 16:40:51 +02:00
d.mentock a0f019a0cf result typehints revision 2022-05-02 11:18:35 +02:00
d.mentock 0a42dba453 modified setup.cfg to include solver dir 2022-05-02 10:25:11 +02:00
Martin Diehl 575de4b89b mypy does not like an import that can result in two types 2022-04-30 23:15:21 +02:00
Martin Diehl 8168d43553 use libyaml-based loader
factor 10 faster on my laptop
2022-04-30 19:44:50 +02:00
Martin Diehl 412884ea82 Merge remote-tracking branch 'origin/development' into typehints_results 2022-04-30 00:25:58 +02:00
Martin Diehl ec6ecc7ed4 default order 2022-04-30 00:25:49 +02:00
Martin Diehl 06cef42927 use physical/ISO convention 2022-04-28 15:57:04 +02:00
Martin Diehl a0455cadf3 consistently have input in radians 2022-04-28 15:46:19 +02:00
1a2a34v 482db1ac3b [skip ci] renamed _add_generic_pointwise provided_func argument to callback 2022-04-28 09:45:10 +02:00
Martin Diehl 5c4d481155 common order is theta,phi 2022-04-28 01:33:33 +02:00
Daniel Otto de Mentock 793f4e22ba renamed func argument to _job_pointwise function to provided_func to avoid overlap with func argument of functools.partial function 2022-04-27 17:29:19 +02:00
Martin Diehl e0d2859202 better test coverage 2022-04-27 17:25:39 +02:00
Martin Diehl 8faa5296a1 Merge remote-tracking branch 'origin/fiber_components_noalphabeta' into development 2022-04-27 17:25:13 +02:00
Daniel Otto de Mentock b06a272586 updated commits of original branch to suit current state of development 2022-04-27 16:26:33 +02:00
Philip Eisenlohr 8f0240c67b avoid option clash in Orientation.from_fiber_component 2022-04-27 08:59:55 -04:00
Martin Diehl 45fdd03ecd main file at root 2022-04-27 06:05:06 +02:00
Martin Diehl bb83d20fe9 Merge branch 'development' into structure-improvements 2022-04-27 05:55:19 +02:00
Test User af8003525a [skip ci] updated version information after successful test of 3.0.0-alpha6-258-gea7c8ef23 2022-04-27 01:01:01 +02:00
Test User 51996a707e [skip ci] updated version information after successful test of 3.0.0-alpha6-252-g59668d291 2022-04-26 11:05:02 +02:00
Daniel Otto de Mentock 59668d2910 removed zip_safe = false entry from setup.cfg 2022-04-26 08:32:18 +02:00
Daniel Otto de Mentock b4c6ca64fc replaced setup.py with setup.cfg file
modified .gitlab-ci.yml file to strip away "v" from git describe 
<commit> result
2022-04-25 12:00:54 +02:00
Martin Diehl 7a4097d52b Marc code belongs to Marc subfolder 2022-04-24 19:03:22 +02:00
Martin Diehl 1b9c0713cb symlink was broken 2022-04-24 17:47:26 +02:00
Test User 553e16ffa3 [skip ci] updated version information after successful test of v3.0.0-alpha6-249-gd2cf972b2 2022-04-23 20:36:11 +02:00
Philip Eisenlohr d2cf972b24 Merge branch 'missing-docstring' into development 2022-04-23 12:04:40 -04:00
Test User 6eb8ade40b [skip ci] updated version information after successful test of v3.0.0-alpha6-236-g1f4ee0813 2022-04-23 08:05:31 +02:00
Philip Eisenlohr 6ec543d086 merge development 2022-04-22 14:27:03 -04:00
Philip Eisenlohr 61265ff994 make mypy happy... 2022-04-22 13:39:23 -04:00
Martin Diehl 1b1eb824c4 better readable 2022-04-22 18:26:52 +02:00
Martin Diehl fb6160e7af Merge remote-tracking branch 'origin/development' into result.incs 2022-04-22 18:24:18 +02:00
Test User 5d12ef5b9f [skip ci] updated version information after successful test of v3.0.0-alpha6-228-g758ad6072 2022-04-22 18:07:42 +02:00
Philip Eisenlohr 1733c121f3 allow scalar initial_conditions --> on-the-fly broadcasting 2022-04-22 11:29:47 -04:00
Philip Eisenlohr 197e24ec0d pass-through ICs when grid remains unaltered 2022-04-21 18:00:58 -04:00
Philip Eisenlohr fa58d69cbb switched "master" property from incs to increments 2022-04-21 17:29:33 -04:00
Test User 8e668a565e [skip ci] updated version information after successful test of v3.0.0-alpha6-223-gd916c7c6b 2022-04-21 21:58:03 +02:00
Philip Eisenlohr b5f9d524d7 optional start,end in times_in_range 2022-04-21 15:56:17 -04:00
Philip Eisenlohr 730bd8ae34 globally defined prefix_inc --> "increment_" 2022-04-21 11:50:24 -04:00
Martin Diehl d916c7c6b1 small polishing 2022-04-21 17:32:30 +02:00
Test User d6f2b99199 [skip ci] updated version information after successful test of v3.0.0-alpha6-221-gdff78154a 2022-04-20 10:02:55 +02:00
Test User 9e2fcfc9df [skip ci] updated version information after successful test of v3.0.0-alpha6-210-ge8c1f8453 2022-04-20 05:24:57 +02:00
Test User 5d99b152ee [skip ci] updated version information after successful test of v3.0.0-alpha6-206-g51582b80f 2022-04-15 21:23:03 +02:00
Test User 03b9a7679f [skip ci] updated version information after successful test of v3.0.0-alpha6-202-g87b5097ff 2022-04-13 18:17:32 +02:00
Test User 4622380134 [skip ci] updated version information after successful test of v3.0.0-alpha6-197-g39d79c23b 2022-04-12 23:19:28 +02:00
Nikhil Prabhu 58b67007a9 fixed missing add_strain 2022-04-12 12:02:00 +02:00
Test User 8ebd234aaf [skip ci] updated version information after successful test of v3.0.0-alpha6-194-ga4c396949 2022-04-10 15:18:41 +02:00
Test User 700f256b7c [skip ci] updated version information after successful test of v3.0.0-alpha6-191-gf8d4e3cf5 2022-04-04 13:04:27 +02:00
Test User 3bf52d832f [skip ci] updated version information after successful test of v3.0.0-alpha6-187-gbf7da2c71 2022-04-03 23:33:19 +02:00
Philip Eisenlohr 84ac426606 additional property shows integer list 2022-04-01 18:04:50 -04:00
Test User 4f646f03ee [skip ci] updated version information after successful test of v3.0.0-alpha6-184-g1f98b04d4 2022-03-27 21:30:58 +02:00
Philip Eisenlohr 1f98b04d44 Merge branch 'util_open' into 'development'
centralize opening of text files

See merge request damask/DAMASK!555
2022-03-27 17:10:31 +00:00
Test User 7135b58b99 [skip ci] updated version information after successful test of v3.0.0-alpha6-180-g2dfde6997 2022-03-27 14:00:35 +02:00
Martin Diehl 0916922423 read Windows/Unix, write Unix line endings 2022-03-27 10:03:47 +02:00
Martin Diehl f3cf67d3fa avoid code duplication and inconsistencies 2022-03-27 09:55:20 +02:00
Martin Diehl 0d57a13c9b run tests on Windows
XDMF does not work (not sure why, works locally)
2022-03-26 22:16:32 +01:00
Martin Diehl bd56a3f2a5 tests might fail on windows 2022-03-26 22:13:54 +01:00
Martin Diehl ff3d3afe9e '/' is separator in h5py even on windows.
os.path assumes OS-dependent path separators
2022-03-26 22:09:45 +01:00
Martin Diehl c11d38b2ec avoid blocking pop-up 2022-03-26 22:08:09 +01:00
Martin Diehl 7f09bbeb08 int is 32 bit on Windows (cause trouble for hybrid_IA) 2022-03-26 22:06:03 +01:00
Martin Diehl e9906864cf ensure Unix line endings 2022-03-26 22:00:08 +01:00
Philip Eisenlohr 7f23f7b5b6 added IC setter/getter; explicit init of returned Grids 2022-03-24 17:23:37 -04:00
Sharan 46259d983d Merge remote-tracking branch 'origin/development' into missing-docstring 2022-03-24 16:19:59 +01:00
Test User ac49365e34 [skip ci] updated version information after successful test of v3.0.0-alpha6-170-gfab34d5c3 2022-03-24 14:46:59 +01:00
Daniel Otto de Mentock fab34d5c3a Merge branch 'expanduser' into 'development'
allow to use '~' in filenames

See merge request damask/DAMASK!552
2022-03-24 11:28:08 +00:00
Test User 4b5cc2a7bc [skip ci] updated version information after successful test of v3.0.0-alpha6-167-gae32d7398 2022-03-23 15:25:23 +01:00
Sharan 9087d4305a Merge remote-tracking branch 'origin/development' into missing-docstring 2022-03-20 14:50:43 +01:00
Sharan 87608b6ed0 missing docstring 2022-03-20 11:55:15 +01:00
Philip Eisenlohr 5b87fafcae Merge branch 'consistent-orientation-from' into 'development'
consistent "shape" keyword in from_X

Closes #165

See merge request damask/DAMASK!546
2022-03-20 00:00:25 +00:00
Martin Diehl 135f2e7add allow to use '~' in filenames
no idea how to test, but seems to work
2022-03-19 11:10:22 +01:00
Martin Diehl 52d595ff62 numpy-compatible shape definition
can be scalar or sequence.
Try to avoid to use the term 'rotation' in the documentation and also
don't specify the return type because it will be used by
'damask.Orientation'.
2022-03-19 10:55:03 +01:00
Test User b5d6f2dc83 [skip ci] updated version information after successful test of v3.0.0-alpha6-157-gecb33641d 2022-03-18 16:09:43 +01:00
Martin Diehl 4972c43b17 return scalar for None, not one-point array 2022-03-18 09:06:48 +01:00
Martin Diehl a0b63c029b Merge remote-tracking branch 'origin/development' into consistent-orientation-from 2022-03-18 08:58:13 +01:00
Philip Eisenlohr 21e076b0f9 Table.save(with_labels=False) to properly store ANG 2022-03-17 21:23:57 -04:00
Test User 1147b5b742 [skip ci] updated version information after successful test of v3.0.0-alpha6-154-g9d134b87b 2022-03-15 17:30:19 +01:00
Test User af4e8c4975 [skip ci] updated version information after successful test of v3.0.0-alpha6-151-g92bf10cad 2022-03-15 12:20:03 +01:00
Philip Eisenlohr 4f09bbc715 documented return type for from_fiber/spherical_component 2022-03-14 16:32:52 -04:00
Philip Eisenlohr 378b8b2396 use consistent "shape" keyword when shape not clear from input data 2022-03-14 16:24:05 -04:00
Test User a925a99f43 [skip ci] updated version information after successful test of v3.0.0-alpha6-146-g3618e36ab 2022-03-13 10:05:54 +01:00
Test User cf49310df7 [skip ci] updated version information after successful test of v3.0.0-alpha6-140-g527c1c222 2022-03-12 16:13:32 +01:00
Martin Diehl 527c1c2225 Merge remote-tracking branch 'origin/vtk-add-label-data-table' into development 2022-03-12 14:10:30 +01:00
Test User 746e02db6b [skip ci] updated version information after successful test of v3.0.0-alpha6-137-g00ef0c6b6 2022-03-12 13:21:25 +01:00
Philip Eisenlohr 56c33b8a5c flipped VTK.add to use (label,data) to be consistent with other functionality 2022-03-11 20:07:18 -05:00
Test User d5a0933978 [skip ci] updated version information after successful test of v3.0.0-alpha6-134-g0d22cfb83 2022-03-12 01:45:01 +01:00
Martin Diehl 0d22cfb83d table.__init__ now has common order of arguments (label, data) 2022-03-11 22:31:35 +01:00
Martin Diehl c5c2763e1f several improvements
- DataFrame.append is deprecated
- restored special case `None` for Grid.vicinity_offset and Grid.clean
- sorted procedures of Grid according to functionality
2022-03-11 22:22:12 +01:00
Test User 1d0d082075 [skip ci] updated version information after successful test of v3.0.0-alpha6-126-g8d9d13c15 2022-03-10 09:56:36 +01:00
Martin Diehl d1c6434bb2 corner case: empty set
will be checked by extra test
2022-03-10 07:37:46 +01:00
Philip Eisenlohr 4f6d9aa4b6 adjusted faulty test 2022-03-09 19:01:45 -05:00
Philip Eisenlohr f13a4c82da grid.clean/vicinity now uses ball neighborhood; lots of polishing 2022-03-09 18:26:52 -05:00
Philip Eisenlohr 3d9ac817bb shorter code 2022-03-09 18:24:18 -05:00
Martin Diehl 98033e41dc test only use modern Result.view API 2022-03-09 20:31:19 +01:00
Martin Diehl b916712946 Merge remote-tracking branch 'origin/keyword-view' into polishing 2022-03-09 15:36:00 +01:00
Martin Diehl 4c941c608f better names and description 2022-03-09 15:35:36 +01:00
Martin Diehl c2453c56f1 Merge remote-tracking branch 'origin/development' into polishing 2022-03-09 15:22:22 +01:00
Martin Diehl 05541736a6 clearer message 2022-03-09 15:18:18 +01:00
Test User 2b27388c05 [skip ci] updated version information after successful test of v3.0.0-alpha6-88-g2162442e0 2022-03-09 12:08:17 +01:00
Martin Diehl c4a7c0096a give default directly
only Colormap object caused problem (tab completion triggered '__repr__'
which means showing colormap in maplotlib window
2022-03-08 22:43:54 +01:00
Philip Eisenlohr 73f01c07d0 clarified colormap default; accept string as colormap name 2022-03-08 09:31:08 -05:00
Martin Diehl 20e056e26a consistent interface also for internal functionality
allows to change multiple 'what's at the same time
2022-03-07 13:10:15 +01:00
Martin Diehl fe8e55e470 KeyError more sensible here 2022-03-07 11:28:17 +01:00
Martin Diehl bc020a9580 correct names 2022-03-07 10:40:28 +01:00
Martin Diehl 4e9e55f3ac Merge remote-tracking branch 'origin/development' into separate-vtk 2022-03-07 10:33:28 +01:00
Martin Diehl 445d5ec720 propagate signals to running commands
otherwise, we have long running processes when GitLab terminates jobs in
a pipeline
2022-03-06 21:11:19 +01:00
Martin Diehl 425d148ea8 mypy-safe 2022-03-06 19:37:46 +01:00
Test User 01e777bc58 [skip ci] updated version information after successful test of v3.0.0-alpha6-73-g0b8adb2aa 2022-03-06 19:23:42 +01:00
Martin Diehl f54849f495 enhance grid to store initial conditions 2022-03-06 00:54:42 +01:00
Martin Diehl d7ba853859 use None for no selection, empty list is 'nothing' 2022-03-05 20:37:47 +01:00
Martin Diehl a77b63718c remove deprecated interface options 2022-03-04 20:27:32 +01:00
Martin Diehl bafc45d259 guide users 2022-03-04 19:07:23 +01:00
Martin Diehl 161e4b6815 testing new functionality 2022-03-04 10:57:49 +01:00
Martin Diehl 03912b0a03 Merge remote-tracking branch 'origin/development' into polishing 2022-03-04 03:44:36 +01:00
Test User 48544641ca [skip ci] updated version information after successful test of v3.0.0-alpha6-71-g3bc1a5eda 2022-03-01 21:45:28 +01:00
Franz Roters 3bc1a5eda4 Merge branch 'python-vtk-improvements' into 'development'
Resolve issues in #149

See merge request damask/DAMASK!535
2022-03-01 08:10:39 +00:00
Martin Diehl dd68aad83b not used 2022-02-28 19:03:56 +01:00
Martin Diehl f9e04bc4cb unifying interface
same same for same functionality, allow user to specify single integer
for convenience
2022-02-28 16:14:40 +01:00
Test User 3c4faf972e [skip ci] updated version information after successful test of v3.0.0-alpha6-40-gc4fdbf88c 2022-02-28 00:26:54 +01:00
Martin Diehl c7b512a94e support the user 2022-02-26 17:40:12 +01:00
Martin Diehl a314e63ed2 homogenize: (material index, material ID) -> material ID
mutable describes meaning of parameter better
2022-02-26 14:22:00 +01:00
Philip Eisenlohr bee3f08d77 test __repr__ functionality with str() 2022-02-24 19:15:28 -05:00
Philip Eisenlohr fd52c18488 remove debug print statements in tests 2022-02-24 18:35:48 -05:00
Test User 6d50066a04 [skip ci] updated version information after successful test of v3.0.0-alpha6-27-gf4a15f579 2022-02-23 18:55:29 +01:00
Philip Eisenlohr 320ab70270 Merge branch 'development' into 'python-vtk-improvements'
# Conflicts:
#   python/damask/_vtk.py
2022-02-23 14:20:52 +00:00
Philip Eisenlohr 08a96f64f5 make mypy happy... 2022-02-23 09:12:55 -05:00
Sharan Roongta f4a15f5796 Merge branch 'consistent-uppercase-in-exceptions' into 'development'
Consistent formatting of raised messages

See merge request damask/DAMASK!533
2022-02-23 13:55:14 +00:00
Philip Eisenlohr 5882a8560c shortened __repr__ code 2022-02-23 08:38:03 -05:00
Martin Diehl 77e57a268c unified.
the default python description "Return repr(self)." is pretty useless,
so better agree on a DAMASK standard
2022-02-23 07:21:30 +01:00
Test User ba4a99ebe6 [skip ci] updated version information after successful test of v3.0.0-alpha6-23-gf944975ac 2022-02-23 06:57:12 +01:00
Martin Diehl 59755c67ce human-readable reporting 2022-02-23 06:49:38 +01:00
Martin Diehl f944975ac5 Merge branch 'symops-in-crystal' into 'development'
symmetry_operations belong to Crystal

See merge request damask/DAMASK!534
2022-02-23 00:54:21 +00:00
Martin Diehl a9d4e89250 Merge branch 'crystal-examples' into 'development'
some guidance for users

See merge request damask/DAMASK!532
2022-02-22 19:23:02 +00:00
Philip Eisenlohr ae2aa096fb fixed flatten order=F; cividis default. 2022-02-22 12:23:29 -05:00
Philip Eisenlohr 661b7fb602 slight polish 2022-02-22 10:56:12 -05:00
Philip Eisenlohr 47dcd4bd41 follow Python exception message convention of lower-case 2022-02-22 10:42:05 -05:00
Philip Eisenlohr 6a4ad7ff75 moved symmetry_operations from Orientation to Crystal 2022-02-22 10:12:03 -05:00
Philip Eisenlohr aeb0e527ec Consistent formatting of raised messages 2022-02-22 09:46:12 -05:00
Philip Eisenlohr 3d554e40b9 clarify real/reciprocal space coordinates 2022-02-22 09:15:32 -05:00
Test User 744f5755ff [skip ci] updated version information after successful test of v3.0.0-alpha6-14-g3657b2316 2022-02-22 14:44:56 +01:00
Martin Diehl be11da2284 testing new functionality 2022-02-22 14:00:36 +01:00
Martin Diehl f6de182eb6 get information about dataset labels 2022-02-22 08:08:41 +01:00
Martin Diehl e8a4f06634 out of place behavior for VTK 2022-02-22 07:49:44 +01:00
Martin Diehl 3a078db6f1 some guidance for users 2022-02-22 06:40:17 +01:00
Test User d1620d9268 [skip ci] updated version information after successful test of v3.0.0-alpha6-4-gca6a3e786 2022-02-21 12:46:52 +01:00
Martin Diehl c975a5b437 needed for out of place behavior
pickle/deepcopy does not work
2022-02-21 12:12:17 +01:00
Martin Diehl 22fa9c9772 add scalebar 2022-02-21 11:19:53 +01:00
Martin Diehl 45dc9cf7a6 show scalar data, use to show material of grid 2022-02-21 08:09:55 +01:00
Martin Diehl 9fe51686e5 allow to use '~' in path
not sure how to test, i.e. how to create a fixture to have a fake home
2022-02-21 07:19:05 +01:00
Test User 9ba0a4bd86 [skip ci] updated version information after successful test of v3.0.0-alpha6-1-g5cc64fc95 2022-02-19 14:56:41 +01:00
Philip Eisenlohr fe2ab947ec somehow "Sequence" was missing from import 2022-02-18 14:50:28 -05:00
Philip Eisenlohr 0adc827278 Merge branch 'development' into python-vtk-improvements 2022-02-18 14:46:40 -05:00
Philip Eisenlohr 75f535b60c welcome back rectilineargrid... 2022-02-18 11:45:49 -05:00
Martin Diehl d8fab8cb07 v3.0.0-alpha6 2022-02-18 11:55:44 +01:00
Test User 76b9b414ab [skip ci] updated version information after successful test of v3.0.0-alpha5-735-ga5699e05d 2022-02-18 10:25:37 +01:00
Philip Eisenlohr e602653b3b remove obsolete grid_filter import 2022-02-17 18:50:53 -05:00
Philip Eisenlohr 8e19e93b39 polishing of doc strings 2022-02-17 18:49:45 -05:00
Philip Eisenlohr 38ac791b58 proper understanding of a rectiliniearGrid 2022-02-17 17:54:26 -05:00
Philip Eisenlohr 41389963a7 Merge branch 'python-polishing' into 'development'
python polishing

See merge request damask/DAMASK!528
2022-02-17 20:23:54 +00:00
Test User bdc269a185 [skip ci] updated version information after successful test of v3.0.0-alpha5-718-gb92ad3e31 2022-02-17 19:03:32 +01:00
Philip Eisenlohr 91cb0f37c8 favor numpy intrinsic over list-comprehension 2022-02-17 12:16:53 -05:00
Philip Eisenlohr 826611411f "list_data" now returns list not str; deemph creator 2022-02-17 12:05:13 -05:00
Martin Diehl 9972a22043 precision is ok, but numpy.sum takes sum over all dimensions per default 2022-02-17 07:58:56 +01:00
Martin Diehl 9a5eb45212 helpful information when comparing files 2022-02-17 07:16:55 +01:00
Martin Diehl 89a914bbe7 correct reporting of units 2022-02-17 07:13:39 +01:00
Martin Diehl ed50cd022b shorter, potential for higher precision
np.sum has an better alogrithm but fails ...
2022-02-16 23:40:02 +01:00
Martin Diehl 9fc6469b13 Merge remote-tracking branch 'origin/development' into python-polishing 2022-02-16 23:13:46 +01:00
Test User 138b0e03f2 [skip ci] updated version information after successful test of v3.0.0-alpha5-696-g6fce27dee 2022-02-16 19:11:10 +01:00
Test User 0f579e44ab [skip ci] updated version information after successful test of v3.0.0-alpha5-691-gfe0ff7cab 2022-02-16 07:51:02 +01:00
Martin Diehl fe0ff7cab2 Merge branch 'typehints_orientation_rotation' into 'development'
04 First typehints for rotation and orientation modules

See merge request damask/DAMASK!479
2022-02-16 03:35:45 +00:00
Philip Eisenlohr 4426172c14 Merge branch 'development' into python-vtk-improvements 2022-02-15 18:07:18 -05:00
Philip Eisenlohr c5f2865121 make apparent that vtk.get automatically "squeezes" 2022-02-15 18:04:21 -05:00
Philip Eisenlohr 96133c68e9 Corrected documentation for Table.set/add/sort_by 2022-02-15 22:53:08 +00:00
Philip Eisenlohr a8898163ce polishing of error message styles 2022-02-15 16:48:24 -05:00
Philip Eisenlohr e2d1ffe7b8 condensed add_table test 2022-02-15 16:42:17 -05:00
Philip Eisenlohr 6916160ed1 implemented VTK.add(damask.Table) 2022-02-15 16:38:02 -05:00
Martin Diehl 35caed305f consistently define allclose for own type only 2022-02-15 22:08:12 +01:00
Test User 00f44c9ed6 [skip ci] updated version information after successful test of v3.0.0-alpha5-651-gd4f711416 2022-02-15 17:06:48 +01:00
Franz Roters d4f7114164 Merge branch 'improved-table-slicing' into 'development'
Extended slicing functionality of Table

See merge request damask/DAMASK!522
2022-02-15 12:48:39 +00:00
Test User bdeb3e042e [skip ci] updated version information after successful test of v3.0.0-alpha5-642-ge38786515 2022-02-15 01:20:38 +01:00
Martin Diehl e387865153 Merge branch 'cm.from_table-with-constant' into 'development'
allow constant (non-label) value in cm.from_table() keys

See merge request damask/DAMASK!523
2022-02-14 20:59:57 +00:00
Philip Eisenlohr 18f9ac7d44 outsource tail-repacking of characters into string (util.tail_repack) 2022-02-14 12:11:01 -05:00
Martin Diehl 7d015fbdc5 avoid confusion with existing table entry 2022-02-14 14:32:02 +00:00
Philip Eisenlohr 2ce464c48e vtk.comments as directly accessed property 2022-02-14 09:24:12 -05:00
Test User 1d5abc206a [skip ci] updated version information after successful test of v3.0.0-alpha5-638-g1ecbeb692 2022-02-14 11:23:42 +01:00
Philip Eisenlohr 1b08f90d6c allow constant (non-label) value in cm.from_table() keys 2022-02-13 23:54:16 -05:00
Philip Eisenlohr 0300912b30 Table.__eq__ for proper comparison; logical masks for slicing now work 2022-02-13 22:00:48 -05:00
Test User e210a9873d [skip ci] updated version information after successful test of v3.0.0-alpha5-624-g26979da58 2022-02-14 02:21:46 +01:00
Martin Diehl b1922c9fc0 return most specific type 2022-02-13 11:03:53 +01:00
Martin Diehl 2907facfd3 polishing
classes should return 'MyType' for inheritance without hassle
2022-02-13 02:47:08 +01:00
Martin Diehl bdc951c39b Merge remote-tracking branch 'origin/development' into typehints_orientation_rotation 2022-02-12 22:39:28 +01:00
Philip Eisenlohr c6a188a1fe added CrystalFamily, CrystalLattice, CrystalKinematics typehints 2022-02-11 15:41:30 -05:00
Philip Eisenlohr 0a52ae3b6f polishing of help and style; relax to FloatSequence type where appropriate but keep doc at np.ndarray 2022-02-11 14:50:55 -05:00
Test User 5f7a18c32d [skip ci] updated version information after successful test of v3.0.0-alpha5-608-g3e8d1a60d 2022-02-11 01:09:25 +01:00
Martin Diehl 3ee98164fa simplified 2022-02-10 23:55:05 +01:00
Martin Diehl b81116f62a not needed anymore 2022-02-10 23:13:37 +01:00
Martin Diehl 1364441703 better readable 2022-02-10 22:57:23 +01:00
Martin Diehl 1e3780b069 shortened 2022-02-10 21:31:52 +01:00
Martin Diehl 57e8fe2b8a need bracket for correct evaluation 2022-02-10 21:28:48 +01:00
Test User 97d17ea50c [skip ci] updated version information after successful test of v3.0.0-alpha5-603-ge0ed668ce 2022-02-09 19:45:43 +01:00
Franz Roters e0ed668ce0 Merge branch 'Fortran-polishing' into 'development'
a number of small improvements

See merge request damask/DAMASK!516
2022-02-09 16:01:00 +00:00
Test User 81c141e3d3 [skip ci] updated version information after successful test of v3.0.0-alpha5-574-g13783f87f 2022-02-08 17:58:03 +01:00
Daniel Otto de Mentock 8c6225794d adjusted return of Orientation.__ne__ function to return NotImplemented in case of wrong input type 2022-02-08 14:47:23 +01:00
Test User 171193d0d7 [skip ci] updated version information after successful test of v3.0.0-alpha5-571-g1edc8442d 2022-02-07 00:44:17 +01:00
Martin Diehl a6e83c70ec adjustments to follow de-facto standard in other parts of the python
library
2022-02-06 17:12:35 +01:00
Daniel Otto de Mentock 72978df099 minor correction 2022-02-04 17:41:29 +01:00
Daniel Otto de Mentock c1c2336638 reverted __eq__ and __ne type verification to return NotImplemented constant
changed rotation.average input type to FloatSequence

minor adjustments
2022-02-04 16:57:25 +01:00
Daniel Otto de Mentock 019ae1c536 adjusted typecheck in __eq__ and __ne__ functions 2022-02-04 11:43:35 +01:00
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
Test User e940a02304 [skip ci] updated version information after successful test of v3.0.0-alpha5-568-g2cb3b2cc4 2022-02-03 13:47:57 +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 a243e10641 Merge remote-tracking branch 'origin/development' into Fortran-polishing 2022-02-03 09:01:33 +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
Martin Diehl f70df11b67 consistent reporting 2022-01-29 15:59:22 +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
Test User 4f926b9686 [skip ci] updated version information after successful test of v3.0.0-alpha5-495-g814d89532 2022-01-25 10:47:22 +01:00
Test User 53a34be4fb [skip ci] updated version information after successful test of v3.0.0-alpha5-489-g80526967c 2022-01-25 04:08:56 +01:00
Philip Eisenlohr 80526967c1 Merge branch 'typehints_table' into 'development'
03 Added typehints for table module

See merge request damask/DAMASK!499
2022-01-25 00:56:32 +00:00
Philip Eisenlohr 2f07d88bc7 clarified set of option values 2022-01-24 21:09:13 +00:00
Martin Diehl 7c72bd48fb simplified 2022-01-24 15:07:47 +01:00
Philip Eisenlohr 6bd23715b8 added multiplication as color repeat functionality 2022-01-24 11:56:33 +01:00
Martin Diehl e320623a40 simplified
dict keeps order since Python 3.6
2022-01-23 14:22:36 +01:00
Martin Diehl 3e584570b2 polishing 2022-01-23 14:15:25 +01:00
Martin Diehl 803c85c2ef Merge remote-tracking branch 'origin/development' into typehints_table 2022-01-23 12:45:06 +01:00
Test User efd9b37235 [skip ci] updated version information after successful test of v3.0.0-alpha5-475-g160eb1c60 2022-01-23 12:43:29 +01:00
Philip Eisenlohr 160eb1c600 Merge branch 'typehints_vtk_util' into 'development'
02 Typehints vtk util

See merge request damask/DAMASK!502
2022-01-23 09:31:47 +00:00
Martin Diehl 2bbc4c4e46 polishing 2022-01-22 09:04:14 +01:00
Martin Diehl a35a01d41b iterable can be any Iterable, not just a Sequence
need to give N_iter only in cases when iterable is not a Sequence
2022-01-22 07:50:52 +01:00
Martin Diehl 7e9ce682e7 correcting types
Not really sure if srepr and friends take really 'Any'. They take
everything that can be casted (piecewise) to a string. So keep it open
at the moment and leave out a typehint
2022-01-22 06:56:42 +01:00
Test User beb62e1c0a [skip ci] updated version information after successful test of v3.0.0-alpha5-460-gfc7c165af 2022-01-22 02:46:29 +01:00
Daniel Otto de Mentock 76ccd4aaaa replaced typehint in shapeshifter function 2022-01-21 11:45:14 +01:00
Daniel Otto de Mentock c2fa17e903 Merge branch 'development' of git.damask.mpie.de:damask/DAMASK into typehints_vtk_util 2022-01-21 06:19:28 +01:00
Test User 4b601a38e7 [skip ci] updated version information after successful test of v3.0.0-alpha5-457-g75040047c 2022-01-21 03:05:10 +01:00
Daniel Otto de Mentock bfa7fd6ecc Merge branch 'development' into 'typehints_vtk_util'
# Conflicts:
#   python/damask/_grid.py
2022-01-20 16:54:23 +00:00
Test User 48f38e74d7 [skip ci] updated version information after successful test of v3.0.0-alpha5-454-gb64a603ef 2022-01-20 15:11:14 +01:00
Daniel Otto de Mentock 77f22318a8 Typehint improvements 2022-01-20 11:52:56 +00:00
Test User 6fb4320fc2 [skip ci] updated version information after successful test of v3.0.0-alpha5-451-g3fbf1459d 2022-01-19 17:02:22 +01:00
Daniel Otto de Mentock f9f0972e3e added FloatSequence type to vtk.from_rectilinear_gridfunction 2022-01-19 10:58:33 +01:00
Daniel Otto de Mentock 5d8fff423e replaced vtk.init argument type with vtkDataSet 2022-01-19 10:40:29 +01:00
Daniel Otto de Mentock 23743c73d4 adjusted util.hybrid_IA function argument 2022-01-19 10:37:22 +01:00
Martin Diehl 632180d67e not needed 2022-01-18 14:27:47 +01:00
Martin Diehl 869fdc847a Merge branch 'development' into misc-improvements 2022-01-18 11:02:18 +01:00
Test User 4cd260881a [skip ci] updated version information after successful test of v3.0.0-alpha5-441-g8b5122f52 2022-01-17 23:52:17 +01:00
Daniel Otto de Mentock 4d3e0e6a51 Merge branch 'development' of git.damask.mpie.de:damask/DAMASK into typehints_table 2022-01-17 16:07:19 +01:00
Daniel Otto de Mentock 777f2e7868 Merge branch 'development' of git.damask.mpie.de:damask/DAMASK into typehints_orientation_rotation 2022-01-17 15:38:45 +01:00
Daniel Otto de Mentock 7b158ba108 added typehints for vtk module 2022-01-17 15:00:25 +01:00
Daniel Otto de Mentock adf7abbda6 added typehints for util module 2022-01-17 14:58:08 +01:00
Martin Diehl a545baebbf VTK polishing
avoid segmentation fault (also allows testing)
2022-01-16 19:23:12 +01:00
Martin Diehl 6657e5c4eb testing a few corner cases
behavior for __eq__ is now following python standard, comparing to wrong
class gives False
2022-01-15 13:22:15 +01:00
Martin Diehl b796bc0697 simplified 2022-01-14 20:44:34 +01:00
Daniel Otto de Mentock 01cc6ffd2c added minor grid adjustments after initial merge of typehints_grid branch 2022-01-14 17:56:58 +01:00
Daniel Otto de Mentock dd82c3c8f0 rewrote table module adjustments to not make use of _io module 2022-01-14 15:08:40 +01:00
Daniel Otto de Mentock 25513d572b minor type adjustment to rotation module removed superfluous Sequence type from orientation module 2022-01-14 14:55:08 +01:00
Daniel Otto de Mentock aabeee9de1 Replaced relevant Sequences with FloatSequence and IntSequence types 2022-01-14 14:37:48 +01:00
Test User 6da3f0fa51 [skip ci] updated version information after successful test of v3.0.0-alpha5-389-ga000e477c 2022-01-14 07:24:12 +01:00
Daniel Otto de Mentock 4ba9935ccc Merge branch 'development' of git.damask.mpie.de:damask/DAMASK into typehints_orientation_rotation 2022-01-13 17:23:24 +01:00
Daniel Otto de Mentock a000e477cf Merge branch 'typehints_grid' into 'development'
added fist typehints for _grid module

See merge request damask/DAMASK!474
2022-01-13 16:21:19 +00:00
Daniel Otto de Mentock db21e82fe3 adjusted data.column retrieval in save method 2022-01-13 17:15:54 +01:00
Daniel Otto de Mentock b4088b666e adjusted filehandle conditional type 2022-01-13 13:27:50 +01:00
Martin Diehl 3acabcdc7f docstring adjustments 2022-01-12 23:57:21 +01:00