Commit Graph

101 Commits

Author SHA1 Message Date
Martin Diehl 12cd19554f consistent interface and description 2022-05-13 06:28:52 +02:00
Philip Eisenlohr 648d17d381 renamed .add to .set to be consistent with Table.set 2022-05-11 18:19:10 -04: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
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 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 f54849f495 enhance grid to store initial conditions 2022-03-06 00:54:42 +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
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
Martin Diehl 59755c67ce human-readable reporting 2022-02-23 06:49:38 +01: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 aeb0e527ec Consistent formatting of raised messages 2022-02-22 09:46:12 -05: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 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
Philip Eisenlohr 75f535b60c welcome back rectilineargrid... 2022-02-18 11:45:49 -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 a8898163ce polishing of error message styles 2022-02-15 16:48:24 -05:00
Philip Eisenlohr 6916160ed1 implemented VTK.add(damask.Table) 2022-02-15 16:38:02 -05:00
Philip Eisenlohr 18f9ac7d44 outsource tail-repacking of characters into string (util.tail_repack) 2022-02-14 12:11:01 -05:00
Philip Eisenlohr 2ce464c48e vtk.comments as directly accessed property 2022-02-14 09:24:12 -05:00
Martin Diehl ce4591fa29 silence prospector on Python 3.9 2022-01-29 19:15:40 +01:00
Martin Diehl 609f13c590 Python 3.8 magic: The walrus operator ":=" 2022-01-29 18:29:42 +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
Martin Diehl 2bbc4c4e46 polishing 2022-01-22 09:04:14 +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
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 7b158ba108 added typehints for vtk module 2022-01-17 15:00:25 +01:00
Martin Diehl a545baebbf VTK polishing
avoid segmentation fault (also allows testing)
2022-01-16 19:23:12 +01:00
Martin Diehl 3acabcdc7f docstring adjustments 2022-01-12 23:57:21 +01:00
Martin Diehl 2c1231a806 using best practices from grid_filters 2022-01-12 23:06:48 +01:00
Martin Diehl 2b9d416734 fixes for old VTK and/or old numpy 2021-09-02 08:45:20 +02:00
Martin Diehl 01a32ea236 import from Neper 2021-06-15 22:29:28 +02:00
Martin Diehl 1bfbd30ae2 polishing 2021-06-15 19:53:05 +02:00
Martin Diehl 218e6a79a8 VTK image data is the appropriate type, not VTK rectilinear grid
FFTs require constant spacing in all three directions, this is
guaranteed by the vtkImageData but not by vtkRectilinearGrid
2021-06-15 19:02:26 +02:00
Martin Diehl a48fa5d797 better readable and documented 2021-05-07 20:07:59 +02:00
Martin Diehl d4a46b9be8 Merge remote-tracking branch 'origin/development' into drop-old-DADF5-support 2021-04-25 17:34:14 +02:00
Martin Diehl 18aa6f7f12 support for string arrays
allows to add phase label from mapping. Only scalar string arrays are
allowed (no real restriction)
2021-04-24 22:50:59 +02:00
Philip Eisenlohr 690b478013 [skip ci] language polishing 2021-04-24 13:12:44 -04:00
Martin Diehl 95831e53f6 using improved documentation 2021-04-24 16:23:34 +02:00