Commit Graph

758 Commits

Author SHA1 Message Date
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
Daniel Otto de Mentock 76912da8bf standard batch multiplication can be done with @ 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
Philip Eisenlohr 5da7ff56b9 Merge branch 'development' into 285-attributes-of-damask-result-should-depend-on-view 2024-01-02 09:37:59 -05: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
Martin Diehl 809f5f455b
test new functionality 2023-12-18 23:30:05 +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 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 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 b5e34e7949 Merge remote-tracking branch 'origin/development' into export_DAMASK_to_DREAM3D 2023-12-04 22:37:05 +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 89ba785938 using correct name (confirmed by user with original request) 2023-11-28 21:08:53 +01:00
Philip Eisenlohr 118247111b slightly shorter code 2023-11-28 12:31:47 -05: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
Martin Diehl 4c5f980d00 more systematic name 2023-11-27 23:14:23 +01:00
Vitesh Shah 986d6a5973 compare the bytes types better 2023-11-27 15:34:02 +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 597175d8fd tests for PhaseName and CrystalStructure datasets and their attributes 2023-11-24 07:55:41 +01:00
Vitesh Shah 56a9dd843c polishing 2023-11-10 12:56:18 +01:00
Vitesh Shah 562e2ea932 updated the files 2023-11-10 12:45:02 +01:00
Vitesh Shah df697981ee avoid file duplication 2023-11-10 12:45:02 +01:00
Vitesh Shah a257fe3e1f updated the resource files 2023-11-10 12:45:02 +01:00
Martin Diehl 1855bafd6a additional, self-explanatory tests 2023-11-07 01:09:25 +01:00
Martin Diehl f687e0a433 helpful error message 2023-11-06 23:42:11 +01:00
Philip Eisenlohr d38ab0e07a signed direction as in KS paper; added Pitsch and Burgers references 2023-11-03 18:51:57 -04:00
Philip Eisenlohr 199b84d096 proper bi-directional orientation relationships 2023-10-23 22:53:27 -04:00
Vitesh f71b1c4dc3 Merge branch 'development' into 'export_DAMASK_to_DREAM3D'
# Conflicts:
#   python/damask/_result.py
2023-10-13 12:21:46 +00:00
Philip Eisenlohr 550c757cdc overall smart blending; more robust disFZ 2023-10-04 09:42:09 -04:00
Vitesh Shah fc44112109 change of variable name after merge 2023-09-29 09:23:58 +02:00
Vitesh Shah 5ba83fd05b Merge branch 'development' into export_DAMASK_to_DREAM3D 2023-09-29 08:00:23 +02:00
Daniel Otto de Mentock c3d3ea6588 Merge branch '272-parallel-post-processing' into 'development'
no multiprocessing for adding datasets

Closes #272

See merge request damask/DAMASK!820
2023-09-25 15:31:43 +00:00
Martin Diehl 5b6aeaf4b3 Merge branch 'shaped-rotation-application' into 'development'
Shaped rotation application

See merge request damask/DAMASK!819
2023-09-24 18:49:41 +00:00
Martin Diehl 36d2ae1c2a avoid repeated opening of files 2023-09-22 15:17:58 +02:00
Martin Diehl ee4cfe4b24 new name
'prod' was introduced in numpy 1.7, 'product' will be removed in 2.0
2023-09-22 11:46:39 +02:00