Commit Graph

84 Commits

Author SHA1 Message Date
Philip Eisenlohr 6315f97f4a added explicit Optional type hint 2022-11-22 16:26:15 -05: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 7530d457a2 documenting new behavior 2022-08-15 08:04:02 +02:00
Philip Eisenlohr ef8891797a Merge branch 'development' into empty-table-init 2022-08-12 16:15:33 -04:00
Philip Eisenlohr 009320c9fc polishing of doc-strings 2022-08-09 09:29:22 -04:00
d.mentock 3492dfcd3b Adding consistency to docstring structure 2022-07-08 18:07:07 +02: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 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
Philip Eisenlohr 92a4883344 consistent and correct type hinting/documentation for comments 2022-05-19 12:19:55 -04:00
Philip Eisenlohr b1b845cb5c allow init of empty table 2022-05-18 18:30:18 -04:00
Philip Eisenlohr 254524fa38 clarified sequence and iterable argument types 2022-05-18 09:21:32 -04:00
Martin Diehl 12cd19554f consistent interface and description 2022-05-13 06:28:52 +02:00
Philip Eisenlohr 35aa8a9bc6 combine table.add and .set 2022-05-11 09:19:48 -04: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 e9906864cf ensure Unix line endings 2022-03-26 22:00:08 +01:00
Philip Eisenlohr 21e076b0f9 Table.save(with_labels=False) to properly store ANG 2022-03-17 21:23:57 -04: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
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 47dcd4bd41 follow Python exception message convention of lower-case 2022-02-22 10:42:05 -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
Philip Eisenlohr 0adc827278 Merge branch 'development' into python-vtk-improvements 2022-02-18 14:46:40 -05:00
Martin Diehl 9fc6469b13 Merge remote-tracking branch 'origin/development' into python-polishing 2022-02-16 23:13:46 +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 96133c68e9 Corrected documentation for Table.set/add/sort_by 2022-02-15 22:53:08 +00:00
Philip Eisenlohr 6916160ed1 implemented VTK.add(damask.Table) 2022-02-15 16:38:02 -05:00
Philip Eisenlohr 0300912b30 Table.__eq__ for proper comparison; logical masks for slicing now work 2022-02-13 22:00:48 -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
Martin Diehl 1e3780b069 shortened 2022-02-10 21:31:52 +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 bc667888ce consistent style 2022-01-26 23:37:07 +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 e8c39077df optional is usually not needed 2022-01-26 06:26:37 +01:00
Philip Eisenlohr 2f07d88bc7 clarified set of option values 2022-01-24 21:09:13 +00: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
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 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
Daniel Otto de Mentock ffa80f6bef added typehints for table module 2022-01-12 17:10:13 +01:00
Sharan Roongta edb7834404 typo 2021-05-20 10:30:00 +02:00