Commit Graph

2477 Commits

Author SHA1 Message Date
Philip Eisenlohr 80c31ac20e Add period to sentences. 2024-03-02 13:31:24 +05:30
Martin Diehl 1d19d4242c more robust implementation
use abs() for situations with negative numbers, allow to explicitly
specify precision.
max_denominator and default N_significant are determined empirical
2024-03-02 13:31:24 +05:30
Martin Diehl d6b1423c20 enable type hints for Colormap
custom constructor ensures that type of color is always an np.ndarray
2024-03-02 13:31:24 +05:30
Philip Eisenlohr e3f27a7eb3 reversed operator order to allow for proper blending in misorientation 2024-03-02 13:31:24 +05:30
Daniel Otto de Mentock 6a91c2855e not needed 2024-03-02 13:31:24 +05:30
Daniel Otto de Mentock 76912da8bf standard batch multiplication can be done with @ 2024-03-02 13:31:24 +05:30
Daniel Otto de Mentock dffc567ba0 requested can be str 2024-03-02 13:31:24 +05:30
Martin Diehl 28a83d6b69 use scipy.linalg.polar
unfortunately, it does not support arbitrary dimensions, so use it as
reference in testing only
2024-03-02 13:31:24 +05:30
Martin Diehl b749beaa6c adjusting tolerance
1e-10 led to failing tests on GitHub Actions
2024-03-02 13:31:24 +05:30
Martin Diehl 8d93079801 restrict test to reasonable values 2024-03-02 13:31:24 +05:30
Franz Roters c4e450fe34 make Marc2023.4 default and unse it for testing 2024-01-04 15:23:50 +01:00
Philip Eisenlohr 5da7ff56b9 Merge branch 'development' into 285-attributes-of-damask-result-should-depend-on-view 2024-01-02 09:37:59 -05:00
Philip Eisenlohr b22251a2b9 Merge branch 'properly-close-files' into 'development'
use context manager to ensure that opened files are closed

See merge request damask/DAMASK!884
2023-12-23 17:49:54 +00:00
Martin Diehl a8e979e904
ensure that files are closed automatically
reported by Karo Sedighiani
2023-12-23 07:07:12 +01:00
Martin Diehl 0c56711032
use OS-independent separators
fix tests on Windows
2023-12-22 19:06:02 +01:00
Philip Eisenlohr 42a752aa6b Merge branch 'development' into '285-attributes-of-damask-result-should-depend-on-view'
# Conflicts:
#   python/damask/_result.py
2023-12-20 19:14:40 +00:00
Martin Diehl 7245aa24d4
use NotImplementedError to indicate non-implemented combinations 2023-12-19 18:39:47 +01:00
Philip Eisenlohr e93618bc89 Correct docstring 2023-12-18 23:02:02 +00:00
Martin Diehl 809f5f455b
test new functionality 2023-12-18 23:30:05 +01:00
Martin Diehl 939d5070b3
matching name
and leave write protection status unchanged
2023-12-17 15:45:34 +01:00
Martin Diehl 95e45ab073
avoid inconsistencies 2023-12-17 13:18:21 +01:00
Martin Diehl db09ca37e6
convenient shortcut 2023-12-17 13:17:52 +01:00
Martin Diehl 7544e81349
dictionary of visible items should not be exposed to users
getters for individual items are easier to understand
Note: increments_in_range and times_in_range operate now only on the
visible increments
2023-12-17 13:16:48 +01:00
Martin Diehl 8def54c862
fixed getters for visible entities
storing time information as dictionary simplifies many operations
2023-12-17 06:55:14 +01:00
Martin Diehl 38f9c1977c
attributes should depend on view
hidden attributes contain the view-independent variables, getter for
currently visible quantities
2023-12-16 16:06:35 +01:00
Philip Eisenlohr cc0f2d477e Merge branch 'export_DAMASK_to_DREAM3D' into 'development'
Export Dream3D output

See merge request damask/DAMASK!835
2023-12-13 14:55:47 +00:00
Philip Eisenlohr 419e6f8f51 Merge branch '359-io_color' into 'development'
Resolve "IO_color"

Closes #359

See merge request damask/DAMASK!870
2023-12-11 21:17:09 +00:00
Martin Diehl 127ff97a24
make internals visible 2023-12-11 15:18:43 +01:00
Philip Eisenlohr c277dce816 Merge branch '353-testing-euler-angles' into 'development'
correctly handling ambiguity if Phi approx pi

Closes #353

See merge request damask/DAMASK!866
2023-12-10 20:28:51 +00:00
Martin Diehl bfb207d34d
use original DREAM.3D file as reference
current loop runs over all datasets (except those that should be
ignored).
2023-12-10 19:46:09 +01:00
Philip Eisenlohr afa80bab68 use numpy intrinsics 2023-12-09 12:03:24 -05:00
Philip Eisenlohr efc76f1f19 shortened code 2023-12-09 12:03:05 -05:00
Martin Diehl f3e7f51bb4 centralized functionality for handling of colors 2023-12-09 16:56:09 +01:00
Martin Diehl 5d07851d60 use stdout but do nothing if redirected 2023-12-09 14:43:29 +01:00
Martin Diehl c350009479 lowered tolerance
avoid failing tests
2023-12-07 12:49:59 +01:00
Martin Diehl beb58b76f2 correctly handling ambiguity if Phi approx pi 2023-12-06 22:07:57 +01:00
Daniel Otto de Mentock 34efdc56ec Merge branch 'SPPARKS-real-data' into 'development'
enforce little endian

See merge request damask/DAMASK!864
2023-12-06 08:38:32 +00:00
Martin Diehl 7bfb081106 more systematic naming
YAML is the base class for ConfigMaterial and LoadcaseGrid
2023-12-05 10:34:05 +01:00
Martin Diehl 8e5f5cc124 simplifying tests 2023-12-05 07:14:14 +01:00
Martin Diehl 1995934371 improved handling of phases without orientation
inactive phases and phases without orientation will get 999 numerical
values
2023-12-04 23:16:24 +01:00
Martin Diehl 5923aa2493 ensure closing of file 2023-12-04 22:53:35 +01:00
Martin Diehl b5e34e7949 Merge remote-tracking branch 'origin/development' into export_DAMASK_to_DREAM3D 2023-12-04 22:37:05 +01:00
Martin Diehl ecf68db814 handle missing orientation data 2023-12-04 22:35:44 +01:00
Martin Diehl 1245ec7d94 grouped 2023-12-04 22:25:28 +01:00
Martin Diehl ffd3cfe951 simplified 2023-12-04 22:16:31 +01:00
Martin Diehl 213e8aa4be avoid monkey patching 2023-12-04 21:50:02 +01:00
Martin Diehl 7a5e08c14d consistent name 2023-12-04 19:59:01 +01:00
Martin Diehl faedb49a20 simplified 2023-12-04 19:33:40 +01:00
Martin Diehl ab24d444fc limit to structures available in DAMASK 2023-12-04 19:25:41 +01:00
Vitesh Shah 9e51ab160c ditching the patched copy approach
Further details or things to look at:
2a48bf504e (note_12028)
2023-12-01 12:34:59 +01:00