Commit Graph

2452 Commits

Author SHA1 Message Date
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
Martin Diehl 4d436f7ed9 realistic SPPARKS file
should not matter because reading is delegated to VTK, but better safe
than sorry
2023-11-30 07:05:09 +01:00
Martin Diehl 5ffe9ce943 enforce little endian
default on common systems, but the only format the Fortran parser
understands
2023-11-30 07:04:33 +01:00
Martin Diehl 89ba785938 using correct name (confirmed by user with original request) 2023-11-28 21:08:53 +01:00
Martin Diehl 38c7e6a8e4 consistent code 2023-11-28 20:57:24 +01:00
Philip Eisenlohr 118247111b slightly shorter code 2023-11-28 12:31:47 -05:00
Philip Eisenlohr 7e56abf41c language polish 2023-11-28 17:21:06 +00:00
Martin Diehl 59765ab0df typo: do not overwrite 'label' 2023-11-28 14:40:14 +01:00
Vitesh Shah 338fce8b5d nested methods and attributes need to added individually 2023-11-28 12:52:57 +01:00
Martin Diehl 9aa68e83a2 new delete function for VTK
follows 'damask.Table' and makes GeomGrid.load_SPPARKS easier
2023-11-28 11:51:14 +01:00
Martin Diehl 9710ec11f0 load data from SPPARKS
https://spparks.github.io/
2023-11-28 10:29:45 +01:00
Vitesh Shah 05da811afe adding ._hl method to modified h5py class
Simple loading of module from importlib misses the extra methods and
attributes associated with h5py.
For h5py._hl is missing which is needed for nullterm strings in
attributes.
2023-11-28 09:45:51 +01:00
Martin Diehl 4c5f980d00 more systematic name 2023-11-27 23:14:23 +01:00
Vitesh Shah 1cf8696cbb correct crystal structure array shape 2023-11-27 15:51:02 +01:00
Vitesh Shah 986d6a5973 compare the bytes types better 2023-11-27 15:34:02 +01:00
Vitesh Shah e3d85e09c8 even with patched copy the class needs to called 2023-11-27 14:00:17 +01:00
Vitesh Shah b1c2e51528 name correction 2023-11-27 11:10:37 +01:00
Vitesh Shah 30b546f2dd message in case of unstructured grids and more constituents 2023-11-24 08:03:16 +01:00
Vitesh Shah fb823c81e7 not needed since patched copy of module is used 2023-11-24 07:55:41 +01:00
Vitesh Shah 2a48bf504e attempting patched copy of h5py
https://stackoverflow.com/questions/11170949/how-to-make-a-copy-of-a-python-module-at-runtime
2023-11-24 07:55:41 +01:00
Vitesh Shah 597175d8fd tests for PhaseName and CrystalStructure datasets and their attributes 2023-11-24 07:55:41 +01:00
Vitesh Shah 66dc5af5e0 needs specific datatype to write string arrays 2023-11-24 07:55:40 +01:00
Vitesh Shah 5dd9445f58 polishing 2023-11-24 07:55:03 +01:00
Martin Diehl c0a97a93fe do not overwrite input, use specialized function 2023-11-20 12:27:23 +01:00
Martin Diehl 39dacbc972 easier to understand 2023-11-20 11:49:59 +01:00
Philip Eisenlohr d8baf3c754 reset field to average of bounds avoiding casting masked NaNs 2023-11-18 20:06:15 -05:00