Commit Graph

120 Commits

Author SHA1 Message Date
Martin Diehl 467638e952 do not include origin into calculation 2023-10-16 15:33:57 +02:00
Martin Diehl 4a943ff844 ensure closed file 2023-09-22 15:18:29 +02:00
Martin Diehl d832d4cf17 improved documentation 2023-09-22 15:17:28 +02:00
Martin Diehl cfdf33e4b1 don't change Neper material ID definition
Neper material ID start at 0 if a buffer layer is added
(run "neper -T -n 100 -tesrsize 320:320:320 -domain "cylinder(20,10)"  -format vtk"),
otherwise at 1.

Hence, leave the IDs untouched and let the user change the
numbering (either by a constant offset or by re-numbering): "explicit is better than implicit"
2023-05-22 17:32:39 +02:00
Martin Diehl d2e85ef15b regrid/map when exporting DADF5 2023-03-25 07:40:21 +01:00
Philip Eisenlohr 06201da5e2 Improvements to Python docstrings 2023-02-21 15:27:06 +00:00
Martin Diehl dcdc4acbd5 Unified object.comments as list[str]; simplifications of Python code 2022-12-13 18:32:19 +00:00
Daniel Otto de Mentock e03ad0db11 Improving grid.vicinity_offset performance optionally with numba 2022-12-10 07:22:22 +00:00
Philip Eisenlohr 6315f97f4a added explicit Optional type hint 2022-11-22 16:26:15 -05:00
Philip Eisenlohr 584d5b4213 Merge branch 'simplify-grid-scale' into 'development'
less repetition

See merge request damask/DAMASK!654
2022-11-15 14:44:53 +00:00
Philip Eisenlohr fa69a1876b unify X or list/seq/collection of X --> (A/B/C of) X in docstrings 2022-11-14 09:09:45 -05:00
Martin Diehl ba4ac5c108 less repetition 2022-11-14 12:42:13 +01:00
Martin Diehl 4f0db64e15 grid assemble + corrected grid.scale 2022-11-08 18:52:08 +00:00
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