Commit Graph

107 Commits

Author SHA1 Message Date
Daniel Otto de Mentock 580e01bd1c fix grid add primitive bug 2022-08-29 11:44:50 +00:00
d.mentock df1f362ed3 it's useful for users to see standard docstrings in magic methods 2022-07-08 18:06:41 +02: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 92a4883344 consistent and correct type hinting/documentation for comments 2022-05-19 12:19:55 -04:00
Philip Eisenlohr d18e36ecf0 fixed leftover .add --> .set 2022-05-11 18:54:03 -04: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
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 7f23f7b5b6 added IC setter/getter; explicit init of returned Grids 2022-03-24 17:23:37 -04:00
Sharan 87608b6ed0 missing docstring 2022-03-20 11:55:15 +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
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
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
Martin Diehl 98033e41dc test only use modern Result.view API 2022-03-09 20:31:19 +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 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 bc020a9580 correct names 2022-03-07 10:40:28 +01:00
Martin Diehl 425d148ea8 mypy-safe 2022-03-06 19:37:46 +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 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
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
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 320ab70270 Merge branch 'development' into 'python-vtk-improvements'
# Conflicts:
#   python/damask/_vtk.py
2022-02-23 14:20:52 +00: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
Philip Eisenlohr ae2aa096fb fixed flatten order=F; cividis default. 2022-02-22 12:23:29 -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 e8a4f06634 out of place behavior for VTK 2022-02-22 07:49:44 +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
Philip Eisenlohr 0adc827278 Merge branch 'development' into python-vtk-improvements 2022-02-18 14:46:40 -05:00
Martin Diehl 89a914bbe7 correct reporting of units 2022-02-17 07:13:39 +01:00
Philip Eisenlohr 2ce464c48e vtk.comments as directly accessed property 2022-02-14 09:24:12 -05:00
Martin Diehl b81116f62a not needed anymore 2022-02-10 23:13:37 +01:00
Martin Diehl a243e10641 Merge remote-tracking branch 'origin/development' into Fortran-polishing 2022-02-03 09:01:33 +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 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 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
Martin Diehl bc667888ce consistent style 2022-01-26 23:37:07 +01:00