Martin Diehl
b3f5ee022a
unified style
2020-06-28 11:40:19 +02:00
Martin Diehl
e6a87da37c
compare to reference results
...
need to patch damask.version to be independent of version strings (in
json and ASCII table)
2020-06-28 11:20:09 +02:00
Martin Diehl
6a748d2edf
do not expand single strings into characters
2020-06-28 11:19:18 +02:00
Martin Diehl
ae4146f1c6
report version, write out 'modern' ASCII table style
2020-06-28 11:18:22 +02:00
Martin Diehl
e81b67e964
polishing
2020-06-28 10:32:59 +02:00
Martin Diehl
1c03bd157f
more testing
2020-06-28 10:25:28 +02:00
Martin Diehl
b78c809375
real output
2020-06-28 10:25:28 +02:00
Martin Diehl
3513754647
low/high instead of left/right
2020-06-28 10:25:28 +02:00
Martin Diehl
f4d13bc810
binary representation depends on vtk lib version
2020-06-28 10:07:31 +02:00
Martin Diehl
d965d66319
[skip ci] documenting
2020-06-28 09:34:10 +02:00
Martin Diehl
8a9a768a77
support pathlib.Path
2020-06-28 07:17:51 +02:00
Martin Diehl
8d5a72e936
more test, swich to pathlib
2020-06-27 23:38:58 +02:00
Martin Diehl
8c8132bcd7
coordinates should not have random names
2020-06-27 23:37:09 +02:00
Martin Diehl
c929af12c0
testing/polishing
2020-06-27 19:44:12 +02:00
Martin Diehl
cf63226721
testing all conversions
2020-06-27 18:55:27 +02:00
Martin Diehl
234699bd18
reverse should return DAMASK colormap
2020-06-27 16:25:10 +02:00
Martin Diehl
e779e190ea
new colormap class for use in python
...
- based on matplotlib "ListedColormap"
- constructors
- Array of RGB values (inherited),
- 'from_bounds': perceptual uniform colormap within given bounds
- 'from_predefined': from matplotlib or DAMASK templates
- export to files (WIP)
- preview on screen
2020-06-27 16:12:40 +02:00
Martin Diehl
1f9b5280cb
forgotten debug statement
2020-06-26 11:47:04 +02:00
Martin Diehl
a69f82e7c3
speed up vtk out
...
- limit to single precision
- write in background
2020-06-26 11:45:54 +02:00
Martin Diehl
bfae88a364
numpy compatible
2020-06-26 11:45:30 +02:00
Martin Diehl
bddb514072
more systematic reporting
2020-06-26 11:45:06 +02:00
Martin Diehl
27220a03bc
not invalid anymore
2020-06-25 09:23:43 +02:00
Martin Diehl
3290e2c585
handle even obscure directions
2020-06-25 08:29:36 +02:00
Martin Diehl
5d7213b062
restore reminder to document changes
...
causes conflicts with outdated tests and is not urgent: postpone until
release.
2020-06-25 08:19:07 +02:00
Martin Diehl
c9829f0f1f
only Chuck Norris can divide by zero
2020-06-25 08:18:39 +02:00
Martin Diehl
cd23937af5
Merge branch 'development' into f-strings
2020-06-25 07:46:24 +02:00
Philip Eisenlohr
e64d353865
condensed scale_to_coprime; added test of scale_to_coprime
2020-06-24 18:37:33 -04:00
Philip Eisenlohr
9999560247
easier understanding of from_ang data layout interpretation
2020-06-24 18:36:43 -04:00
Philip Eisenlohr
14d3b7e66d
more f-stringing
2020-06-24 16:59:55 -04:00
Philip Eisenlohr
966b6f8007
shapes init copes with integers instead of strict tuples; introduced f-strings
2020-06-24 14:18:06 -04:00
Philip Eisenlohr
f8f433e826
introduced f-strings
2020-06-24 14:13:56 -04:00
Philip Eisenlohr
ff858fd4c8
[skip ci] corrected help string for "srepr"
2020-06-24 20:13:09 +02:00
Philip Eisenlohr
4314ec1f37
[skip ci] started to replace .format() with f-strings
2020-06-24 11:02:37 -04:00
Anderson Wallace Paiva do Nascimento
3d93a5ff00
Merge branch 'migrate-to-pathlib' into 'development'
...
Migrate to pathlib
See merge request damask/DAMASK!177
2020-06-24 14:54:36 +02:00
Martin Diehl
6fa5ae6ebf
literature from Karo
2020-06-22 23:14:58 +02:00
Martin Diehl
e33895dd35
[skip ci] better logic
2020-06-21 10:37:09 +02:00
Martin Diehl
c6a5bb8a3b
is 2020
2020-06-21 10:04:45 +02:00
Martin Diehl
4c5939ef23
small polishing
2020-06-20 22:51:00 +02:00
Martin Diehl
15b43bcebf
from_directions is not general, removed
...
polishing
2020-06-20 19:57:49 +02:00
Martin Diehl
3f63a4fdbc
[skip ci] typo
2020-06-20 18:13:34 +02:00
Martin Diehl
4dae3643c9
vectorized IPF color working
...
results also uses the vectorized form.
Still needs careful checking
2020-06-20 17:15:13 +02:00
Martin Diehl
ebdb65d31f
standard broadcast_to behavior
2020-06-20 16:35:22 +02:00
Martin Diehl
262346ff5a
polishing
2020-06-20 16:34:19 +02:00
Martin Diehl
d93ed2bc5c
several improvements:
...
- vectorized from_directions
- more tests (96% coverage, only random functionality is untested)
- updated documentation, folloing numpy standard
- inverse operator '~' introduced
2020-06-20 12:20:43 +02:00
Martin Diehl
055fa64f5f
better readable
2020-06-19 12:25:46 +02:00
Martin Diehl
13bf7515ce
WIP (broken?): vectorized calculation of IPF color
2020-06-19 10:54:13 +02:00
Martin Diehl
1648963b57
vectorized equivalent orientation calculation
2020-06-18 22:53:04 +02:00
Martin Diehl
cdda556e18
small improvements
...
- hack for reporting multiple rotation
- bugfix for vectorized Rodrigues vector
- more general broadcasting (even more powerfull then np.broadcast_to)
2020-06-18 22:30:22 +02:00
Martin Diehl
fe5e5babfe
more useful for vectorized calculations
2020-06-18 22:29:28 +02:00
Martin Diehl
d0d9245707
clearer intention
2020-06-16 23:35:50 +02:00
Samad Vakili
0f42ff6b5d
reshaped F transpose error3
2020-06-10 14:02:52 +02:00
Samad Vakili
4f4d8d8c92
reshaped F transpose error2
2020-06-10 13:27:36 +02:00
Samad Vakili
7d7927e821
reshaped F transpose error
2020-06-10 13:22:57 +02:00
Samad Vakili
f3d59ddfe5
F reshaped error
2020-06-10 12:00:33 +02:00
Samad Vakili
36f04309b4
issue in test_mechanics
2020-06-09 21:33:13 +02:00
Samad Vakili
694b7ec3c5
mechanics done
2020-06-09 21:27:08 +02:00
Samad Vakili
d365cc9e12
typo
2020-06-09 14:39:17 +02:00
Samad Vakili
2978cf72f7
check for test_mechanics
2020-06-09 14:31:20 +02:00
Samad Vakili
824682d236
checked for typo
2020-06-09 14:26:22 +02:00
Samad Vakili
627e62439b
the single case is included in test file
2020-06-09 14:17:31 +02:00
f.basile
a76b5233be
fix pyflakes imported but unused in pytest 2
2020-06-05 13:54:38 +02:00
f.basile
54c20cdd3c
fix pyflakes imported but unused in pytest
2020-06-05 13:53:47 +02:00
f.basile
cb1779ef9a
fix pep257: D415 / First line should end with a period, question mark, or exclamation point (not e)
2020-06-05 13:49:30 +02:00
f.basile
eae9698d22
equivalent,related and inFZ vectorized + pytest
2020-06-05 13:48:12 +02:00
f.basile
ac09a2912a
fix python/damask/_orientation.py contains invalid python3 code 2
2020-06-04 16:45:44 +02:00
f.basile
6a24aee171
fix python/damask/_orientation.py contains invalid python3 code
2020-06-04 16:44:57 +02:00
f.basile
3897136f85
avoid python/damask/_orientation.py exceeds line length limit (maximum line length 141 > 132)
2020-06-04 16:43:28 +02:00
f.basile
0c41e33434
orientation.equivalent takes several rotations at the same time + small test"
...
"
""
2020-06-04 16:39:24 +02:00
Martin Diehl
a9c61ede69
bugfix: should also work if DAMASK_NUM_THREADS is not set
2020-06-03 20:24:18 +02:00
Martin Diehl
bda555fd1c
we are looking for a path, not for a file
2020-06-03 16:47:03 +02:00
Martin Diehl
bb5485927e
names like 2020.2 cannot be converted to int
2020-06-03 15:18:46 +02:00
Martin Diehl
5da1aa49bc
string should be a Path object
2020-06-03 15:17:00 +02:00
Martin Diehl
9b04a45bbd
bugfix (wrong variable name)
2020-06-03 13:53:00 +02:00
Martin Diehl
3be1a33820
easier to read
2020-06-03 13:32:47 +02:00
Martin Diehl
c67fbacfc7
higher test coverage
...
- invalid operations
- legacy output
2020-06-03 11:03:31 +02:00
Martin Diehl
c5d0c7e52e
easier to read, more flexible
2020-06-03 10:44:40 +02:00
Martin Diehl
ac9fddd9e9
Merge remote-tracking branch 'origin/development' into misc-improvements
2020-06-02 00:12:50 +02:00
Martin Diehl
a51cc39613
proper docstring
2020-06-01 22:13:01 +02:00
Martin Diehl
72a0b1fae5
testing and polishing
2020-06-01 11:33:22 +02:00
Martin Diehl
7a193639fb
also show datasets without unit
...
currently, this is only the orientation dataset
Also enable renames. Since this alters the history, the user need to
enable this
2020-05-31 23:50:06 +02:00
Martin Diehl
bcb0ce5e5e
typo
2020-05-31 18:51:12 +02:00
Martin Diehl
adb92de8cc
Merge branch 'development' into less-shell-scripts
2020-05-31 18:49:51 +02:00
Martin Diehl
421b8f4268
documented function interfaces
2020-05-30 17:31:50 +02:00
Martin Diehl
1afa00a19c
testing systematically all possibilities
2020-05-28 08:05:16 +02:00
Martin Diehl
865a505186
fix for logarithmic strain
2020-05-27 22:32:35 +02:00
Martin Diehl
00168a5939
testing 2-dim array of tensors
2020-05-27 21:07:48 +02:00
Martin Diehl
56afc03f3c
only vectorized version needed
...
use single point/simple versions only for testing
2020-05-27 18:05:08 +02:00
Martin Diehl
0fe450a033
Merge branch 'misc-improvements' into less-shell-scripts
2020-05-27 17:40:13 +02:00
Martin Diehl
31f72aa912
handle min/mid/max eigenvalues/vectors separately
...
storing as matrix/vector is not favorable for paraview and in many
cases, either min or max are of interest only
2020-05-27 17:39:46 +02:00
Samad Vakili
f9c33d9210
mechanics checked for an array with arbitrary dimensions
2020-05-26 16:27:27 +02:00
Martin Diehl
addc4c36d1
test for XDMF writer
...
just ensure that it does not throw an exception
2020-05-26 08:06:39 +02:00
Martin Diehl
520dfe216a
cleaning
2020-05-26 07:57:32 +02:00
Martin Diehl
908788271a
Merge branch 'misc-improvements' into less-shell-scripts
2020-05-26 07:24:03 +02:00
Martin Diehl
5ad7fe04d0
bugfix:
...
used wrong type
2020-05-26 07:15:27 +02:00
Martin Diehl
670e08468b
reorder
...
tests depend on other functionality that should be tested first
2020-05-26 06:49:29 +02:00
Martin Diehl
88c49fc4f4
also check values
2020-05-26 06:48:52 +02:00
Martin Diehl
7f09c90c7d
different h5py versions seem to throw different errors
2020-05-26 06:39:11 +02:00
Martin Diehl
6f7c7005b0
bugfix:
...
- proper overwrite
- no out of bounds error for empty time selection (just pick nothin)
2020-05-25 23:54:06 +02:00
Martin Diehl
9855c61747
store vtk file in tmp directory
2020-05-25 23:39:19 +02:00
Martin Diehl
9076fbe525
testing overwrite functionality
2020-05-25 23:05:31 +02:00
Martin Diehl
d6877da2b6
single source of truth
2020-05-25 20:15:45 +02:00
Martin Diehl
d9d089c359
avoid repetition and do correct encode/decode
2020-05-25 20:13:57 +02:00
Martin Diehl
5d0a2aac8f
polishing reporting
2020-05-25 20:13:57 +02:00
Martin Diehl
b9e16ea951
overwriting datasets makes sense in special cases
...
but prevent user from accidently doing that and store the information
2020-05-25 20:13:57 +02:00
Martin Diehl
248f199a7b
track creation time
2020-05-25 18:51:10 +02:00
Martin Diehl
b1b8d02320
typo
2020-05-25 16:41:23 +02:00
Martin Diehl
9d7158b51a
Merge branch 'misc-improvements' of magit1.mpie.de:/damask/DAMASK into misc-improvements
2020-05-25 16:40:23 +02:00
Martin Diehl
f07eaf19d0
fixed broadcasting + corresponding test
2020-05-25 16:37:08 +02:00
Martin Diehl
784d6d09d9
cleaning
2020-05-25 15:55:38 +02:00
Martin Diehl
dad7c7a2a0
Merge branch 'vectorize_rotation' into misc-improvements
2020-05-25 15:50:03 +02:00
Martin Diehl
3e2cbef780
Merge remote-tracking branch 'origin/development' into vectorize_rotation
2020-05-25 15:46:27 +02:00
Martin Diehl
77b68ab86f
using rotation class for rotations
2020-05-25 09:39:39 +02:00
Martin Diehl
39505507f1
not needed anymore
2020-05-25 08:07:12 +02:00
Martin Diehl
17aa3c00dc
more tests
2020-05-24 22:52:00 +02:00
Martin Diehl
296308e11e
fix for rotation around 90 deg
...
more tests
2020-05-24 20:52:19 +02:00
Martin Diehl
34adefd4ca
simplified
2020-05-24 18:30:45 +02:00
Samad Vakili
987c4a9e8d
first commit mechanics
2020-05-24 18:30:44 +02:00
Martin Diehl
594fcb2b72
seems more appropriate
2020-05-24 15:10:53 +02:00
Martin Diehl
3231a49107
centralize functionality
2020-05-24 09:39:58 +02:00
Martin Diehl
a26cba1457
calling a few missing statements
2020-05-24 09:06:11 +02:00
Martin Diehl
a3d9520c4b
polishing
2020-05-23 15:54:28 +02:00
Martin Diehl
82419f8649
testing selection
2020-05-23 10:38:25 +02:00
Martin Diehl
8a848979aa
missing test for IPF color
2020-05-23 09:13:45 +02:00
Martin Diehl
0549e33a00
vectorized/fast
2020-05-23 08:38:57 +02:00
Martin Diehl
e2cf527dfb
add missing test
2020-05-23 08:19:08 +02:00
Martin Diehl
b8e83cd263
do not overwrite
2020-05-22 20:42:13 +02:00
Martin Diehl
7bd681a5ed
very simple test
2020-05-22 19:04:02 +02:00
Martin Diehl
11eda510aa
testing functionality of Lattice separately
2020-05-22 18:45:27 +02:00
Martin Diehl
b33de48528
testing broadcasting
2020-05-22 15:12:37 +02:00
Martin Diehl
23b1381eaf
give credit
2020-05-21 11:30:25 +02:00
Martin Diehl
16f30a10d0
polishing
2020-05-20 23:50:08 +02:00
Martin Diehl
353fd3ceb6
more tests
...
now 95% test coverage of Rotation class
2020-05-20 19:16:31 +02:00
Martin Diehl
128a96e7f6
vectorized formula is enough
2020-05-20 18:13:51 +02:00
Martin Diehl
bb419d49df
polishing
2020-05-20 16:19:12 +02:00
Martin Diehl
b59d773689
store all test data together
2020-05-20 15:26:49 +02:00
Martin Diehl
9240dd59b2
mark as internal
...
all functionality (+ sanity checks) can be done with the class
functionality
2020-05-20 11:11:07 +02:00
Martin Diehl
9694767997
all seems to work now
2020-05-20 09:01:38 +02:00
Martin Diehl
1d8903bb0c
transition code
2020-05-20 00:18:44 +02:00
Martin Diehl
1fa4a07bb8
for backward compatibility
2020-05-19 23:39:01 +02:00
Martin Diehl
3e00269179
again some more tests
2020-05-19 23:24:12 +02:00
Martin Diehl
1c53a37de4
more tests and adjustments to tolerances
2020-05-19 21:03:30 +02:00
Martin Diehl
a6b0aaffba
more tests
...
Hotfix needed for axis angle to matrix (not used in DAMASK, needs
further investigation)
2020-05-19 19:41:50 +02:00
Martin Diehl
de79a5af43
directly test the internal conversions
...
some work to do ...
2020-05-19 09:55:23 +02:00
Martin Diehl
065c624f94
fix for backward compatibility
2020-05-19 09:10:14 +02:00
Martin Diehl
ebf05a279e
standard name
2020-05-19 08:59:03 +02:00
Martin Diehl
1a3a4a800e
vectorized
2020-05-19 07:59:24 +02:00
Martin Diehl
b6eebcd704
small fixes (testing P=+1)
2020-05-19 07:57:40 +02:00
Martin Diehl
b200894a40
bugfix and further test
2020-05-19 07:57:40 +02:00
Martin Diehl
3dc90ddb94
use the formula from the paper, not from the reference implementation
...
a few multiplications should be faster than a transpose
2020-05-19 07:57:40 +02:00
Martin Diehl
a25dd1c438
cleaning
2020-05-19 07:57:40 +02:00
Martin Diehl
743e91a78d
cleaning
2020-05-17 08:01:34 +02:00
Martin Diehl
652ece6bb3
fix: wrong capitalization
2020-05-17 07:25:17 +02:00
Martin Diehl
2550447169
Merge branch 'development' into docstring-sphinx-adjustments
2020-05-17 00:10:58 +02:00
Martin Diehl
a90865c877
non-vectorized versions not needed anymore
...
using them only for testing purposes
2020-05-17 00:10:18 +02:00
Martin Diehl
9ba419c2c3
Merge branch 'development' into vectorize_rotation
2020-05-16 20:58:06 +02:00
Martin Diehl
a4dfd7fc74
missing tests
2020-05-16 17:23:05 +02:00
Martin Diehl
044f069437
bugfix: selected wrong data
2020-05-16 17:06:55 +02:00
Martin Diehl
a279785149
Merge branch 'development' into misc-improvements
2020-05-16 17:01:48 +02:00
Martin Diehl
61ac40c259
more tests
2020-05-16 13:54:53 +02:00
Martin Diehl
19638168e6
more sensible type checking and errors
2020-05-16 13:23:32 +02:00
Martin Diehl
9fa1539163
using new names
2020-05-16 11:17:12 +02:00
Martin Diehl
235f3c0df7
bugfix: copy and paste error
2020-05-16 11:16:52 +02:00
Martin Diehl
e2ba294b75
bugfix: wrong variable
2020-05-16 09:40:32 +02:00
Martin Diehl
2dc46b783a
simplified and tested
2020-05-16 00:58:40 +02:00
Martin Diehl
dc508cdfce
Merge remote-tracking branch 'origin/misc-improvements' into vectorize_rotation
2020-05-15 23:25:42 +02:00
Martin Diehl
3fd868dc45
Merge branch 'development' into vectorize_rotation
2020-05-15 23:25:36 +02:00
Martin Diehl
b5b9bfaa99
need space at end of definition list
2020-05-13 11:36:16 +02:00
Martin Diehl
66b928c5af
using doctest style
...
https://docs.python.org/3/library/doctest.html
https://numpy.org/doc/stable/docs/howto_document.html#sections (section
15)
2020-05-13 10:47:49 +02:00
Martin Diehl
6f3b526811
Merge branch 'development' into docstring-sphinx-adjustments
2020-05-13 10:38:45 +02:00
Karo
90f93d2399
Merge branch 'integrate-lambert' into 'development'
...
Integrate lambert
See merge request damask/DAMASK!166
2020-05-12 23:36:08 +02:00
Martin Diehl
6928a8290f
less whitespace,
...
alingment only within one vector/tensor
2020-05-10 13:02:26 +02:00
Vitesh Shah
c8701a4665
Cleanup/better readability
2020-05-08 12:15:10 +02:00
Martin Diehl
b75e98ca3f
forgotten debug statements
...
+ polishing of XDMF output
2020-05-07 19:12:05 +02:00
Martin Diehl
c2b4f5516e
DADF5_postResults tries to combine datasets, this does not work
2020-05-07 00:14:14 +02:00
f.basile
fcd0028b83
avoid line length limit (maximum line length 182 > 132
2020-05-06 14:33:04 +02:00
f.basile
d977f2ad25
already merged
2020-05-06 14:26:54 +02:00
f.basile
26f55781ae
merge test into gridFilters
2020-05-06 14:26:15 +02:00
f.basile
a122a307b9
div test done
2020-05-06 14:14:18 +02:00
f.basile
d4091a21a8
grad test done
2020-05-06 13:05:53 +02:00
f.basile
8b4baecdee
better looking test fields
2020-05-06 12:54:24 +02:00
f.basile
bd518b2806
test_curl done
2020-05-06 12:44:56 +02:00
Martin Diehl
9626833339
Merge branch 'development' into pytest-curl-div-grad-2
2020-05-05 22:45:30 +02:00
Martin Diehl
ef4a4dad4a
shape property and numpy-like broadcasting
...
this makes it easy to apply a single rotation to a field
2020-05-05 14:44:08 +02:00
Martin Diehl
eeb0df3a55
do not store absolute path
2020-05-05 10:42:54 +02:00
Vitesh Shah
307debebd4
Correct shapes for gradient calculations
2020-05-05 10:22:23 +02:00
Martin Diehl
31c397255d
equivalent (for a valid DADF5 file) but faster
2020-05-05 10:18:48 +02:00
Vitesh Shah
0650f46ab1
Tests for gradient
2020-05-05 10:13:30 +02:00
Martin Diehl
14cdc031e0
write XDMF files
...
the limitation to scalar, 3-vector and 3x3-tensor comes currently from
XDMF/vtk/paraview
extension to multiple constituents and unstructured meshes might be
possible
2020-05-05 09:57:22 +02:00
Martin Diehl
6e99956b58
Merge branch 'development' into misc-improvements
2020-05-05 09:22:53 +02:00
Martin Diehl
5f3f87cd68
vectorizing cubochoric conversions
2020-05-04 17:43:38 +02:00
Martin Diehl
7d1e0850ab
test + resulting bug fix
2020-05-03 17:04:03 +02:00
Martin Diehl
5d4b554b00
WIP: vectorizing
2020-05-03 07:48:13 +02:00
Martin Diehl
c241eaec15
rely on correct input data
2020-05-03 07:23:46 +02:00
Martin Diehl
f0bb50b97d
vectorized rotation function
2020-05-02 15:22:17 +02:00
Martin Diehl
c7a77ebc26
Merge branch 'development' into integrate-lambert
2020-05-02 09:21:42 +02:00
Martin Diehl
2df78e4e2f
vecorized pyramid function for lambert projection
2020-05-02 09:17:31 +02:00
Martin Diehl
b88f5ec0c8
clean up
2020-05-01 14:53:40 +02:00
Martin Diehl
ce9bdc50a4
common variable names
2020-04-29 14:46:58 +02:00
Martin Diehl
9e79935add
Merge branch 'development' into less-shell-scripts
2020-04-28 20:43:16 +02:00
Martin Diehl
9273c88782
[skip ci] WIP: migrating from PRIVATE repo
2020-04-28 09:42:27 +02:00
Martin Diehl
2d14790863
the result of a differential operator operating on a constant field is 0
2020-04-27 05:08:47 +02:00
Martin Diehl
6864b9525d
go back to original dir as soon as possible
2020-04-26 14:52:27 +02:00
Martin Diehl
f02c77b6d0
more reasonable tolerance
...
still relatively high because ctf files store position with constant
number of digits and floating dot. Hence, the precision is very low
2020-04-24 20:01:57 +02:00
Martin Diehl
1610d5a5d2
Merge branch 'development' into misc-improvements
2020-04-24 20:01:40 +02:00
Martin Diehl
707324887f
inform the user about planned functionality
2020-04-24 06:52:09 +02:00
Martin Diehl
042f64200c
Merge branch 'development' into vectorize_rotation
2020-04-24 06:31:14 +02:00
Francisco Jose Gallardo Basile
898cf42aca
Merge branch 'fix-grid-convention' into 'development'
...
Fix grid convention
See merge request damask/DAMASK!160
2020-04-23 19:02:23 +02:00
Martin Diehl
cc3fa156cf
support change of directory one object has been created
2020-04-23 16:29:20 +02:00
Martin Diehl
a0b7c51bec
less strict tolerances
...
grid position reported by EBSD has only a few decimal places, so
rounding errors occur
2020-04-22 23:32:34 +02:00
Martin Diehl
8ba547a1b5
no need for an extra file
2020-04-22 13:23:50 +02:00
Martin Diehl
a39e6b7af9
hide internal variables
2020-04-22 13:12:30 +02:00
Martin Diehl
3621dddd66
test deviatoric part for known analytic solution
2020-04-22 09:16:53 +02:00
Martin Diehl
53b8c1c893
simplified
2020-04-22 08:58:43 +02:00
Martin Diehl
a8c6fdd9ba
for the sake of completeness
2020-04-22 07:40:02 +02:00
Martin Diehl
7efe14be35
Merge branch 'development' into vectorize_rotation
2020-04-21 19:29:30 +02:00
Martin Diehl
97a5880d76
ensure correct shape
2020-04-21 13:22:55 +02:00
Martin Diehl
75d7238376
vectorized as_XXX
2020-04-21 12:27:50 +02:00
Martin Diehl
ae3eca5f98
fix for vectorized from_random
2020-04-21 12:08:16 +02:00
Martin Diehl
ac75b9e4ca
improved reporting + test
2020-04-21 11:17:15 +02:00
Martin Diehl
23fc58699f
vectorize Rotation.fromXXX functions
2020-04-21 10:55:45 +02:00
Martin Diehl
4a05cdbbbb
copy and paste error
2020-04-21 03:26:26 +02:00
Martin Diehl
528378eba2
polishing/bugfix
...
* HDF5 data has x fast, therefore reshape needs to be aware of 'F' order
* Datatype for True/False is 'bool' in python, not 'Boolean'
2020-04-20 22:51:51 +02:00
Martin Diehl
00cb17ccfa
commenting
2020-04-20 22:47:55 +02:00
Martin Diehl
93db1b37ca
some useful information
2020-04-20 22:32:13 +02:00
Martin Diehl
25d29bf438
no need for Fortran order forward/backward
2020-04-20 20:24:55 +02:00
Martin Diehl
1ccda22ae3
nothing to flatten here
2020-04-20 20:16:25 +02:00
Martin Diehl
4db91fff03
simplified
2020-04-20 20:14:27 +02:00
Martin Diehl
f519e62cd5
testing data layout checks
2020-04-20 13:56:33 +02:00
Martin Diehl
02dde3c255
test also invalid operations
2020-04-20 13:10:13 +02:00
Martin Diehl
9979eb58f4
consistent layout for grid data
...
has now always the shape ([x,y,z,...]) with x fastest. For conversion from or
to linear layout ([x*y*z,...]), e.g. storage in ASCII table, reshape needs
to have the 'F' option.
Credits to Vitesh and Fran for pointing this out.
2020-04-20 13:09:59 +02:00
Martin Diehl
bce5ed62d5
polishing
2020-04-20 10:13:15 +02:00
Martin Diehl
e3958263e3
Merge branch 'development' into misc-improvements
2020-04-15 21:03:51 +02:00
Karo Sedighiani
03aa6f9c80
Merge branch 'vectorize_rotation' into development
2020-04-14 19:34:11 +02:00
Philip Eisenlohr
d3eba41519
[skip ci] fixed bug of double execution of np.degrees in asAxisAngle
2020-04-14 12:22:41 -04:00
Martin Diehl
69857176b2
search and replace error
2020-04-14 15:33:20 +02:00
Martin Diehl
93c75cada3
numpydoc style
2020-04-12 15:38:38 +02:00
Martin Diehl
aaeec16c66
proper indentation for sphinx
2020-04-12 15:34:29 +02:00
Martin Diehl
b6b98bd14f
more meaningful
2020-04-12 15:20:09 +02:00
Martin Diehl
c6c1878b13
asterisk is the emphasize sign for restructured text
...
not really needed here
2020-04-12 15:19:32 +02:00
Martin Diehl
3d10266fbc
similar style as for other conversions
2020-04-12 01:29:11 +02:00
Martin Diehl
04fbc38a4b
keep namespace clean and avoid overwriting in fromXXX functions
2020-04-12 01:19:11 +02:00
Martin Diehl
f41a47ce8b
polishing and slightly stricter tolerances
2020-04-11 23:27:25 +02:00
Martin Diehl
c0c37fe6a5
polishing
2020-04-11 20:42:46 +02:00
Martin Diehl
c57f96cd6e
also missing
2020-04-11 18:32:06 +02:00
Martin Diehl
8c61f67e34
cleaning
2020-04-11 18:24:54 +02:00
Martin Diehl
296a75d452
where not needed
2020-04-11 18:00:59 +02:00
Martin Diehl
fac33ec408
polishing
2020-04-11 17:23:54 +02:00
Martin Diehl
51104bfc13
do not transpose for the standard case
2020-04-11 17:19:12 +02:00
Martin Diehl
cb9daccdd7
homochoric representation vectorized
2020-04-11 16:14:40 +02:00
Martin Diehl
99655c9f61
more vectorized functions
2020-04-11 13:59:16 +02:00
Martin Diehl
4e759d6c98
more tests for orientation conversion
...
ensure that all parameters are within range and check if
multidimensional arrays at least run
2020-04-11 12:37:21 +02:00
Martin Diehl
3bfa2d679c
simpler/correct logic for eu2om
2020-04-11 11:36:37 +02:00
Martin Diehl
59b0a6e825
tuples not needed/avoid eval
2020-04-10 13:07:05 +02:00
Martin Diehl
656c0199cf
sorted and make explicitly available what we need
2020-04-10 12:32:33 +02:00
Martin Diehl
9837390406
do not clutter namespace
...
we do not need damask.util.np etc
2020-04-10 12:30:39 +02:00
Martin Diehl
9c0ea13e4f
Merge branch 'development' into misc-improvements
2020-04-10 08:14:33 +02:00
Martin Diehl
bab3581b11
need to transpose eigenvectors to find the correct one
2020-04-09 15:01:01 +02:00
Martin Diehl
e502573e05
polishing
2020-04-09 14:20:43 +02:00
Martin Diehl
b025c1838e
simplified
2020-04-09 12:52:12 +02:00
Martin Diehl
cbfde73a29
more testing and related fixes
2020-04-09 07:40:20 +02:00
Martin Diehl
43e7639f77
WIP: implementing orientation matrix conversions
2020-04-09 00:47:43 +02:00
Martin Diehl
da30fb8396
qu(aternion) and eu(ler) vectorized and tested
2020-04-09 00:35:40 +02:00
Martin Diehl
464620b796
vectorized conversion from ax(is angle)
2020-04-08 21:24:59 +02:00
Martin Diehl
2a063b3bb5
relaxed tolerance not needed
2020-04-08 20:23:05 +02:00
Martin Diehl
59e0041fd7
more scatter, slightly reduced tolerance
2020-04-08 19:30:50 +02:00
Martin Diehl
3cd8f3d9a0
testing special orientations with scatter
2020-04-08 18:38:57 +02:00
Martin Diehl
1ba01ba0db
adjusting tolerances
2020-04-08 18:15:50 +02:00
Martin Diehl
f365ae104d
adjusting tolerances
2020-04-08 17:55:05 +02:00
Martin Diehl
10d5b2e791
testing some special cases
2020-04-08 13:41:46 +02:00
Martin Diehl
8f88480790
better readable error messages
2020-04-08 12:59:34 +02:00
Martin Diehl
b6f5548d8a
correct normalization at the corners
2020-04-08 12:23:28 +02:00
Martin Diehl
4e06e9a410
improved numerical stability for corner cases
2020-04-08 11:52:26 +02:00
Martin Diehl
ccf62ede52
bugfix for Cubochoric
...
forward and backward mappings are different
2020-04-08 11:41:42 +02:00
Martin Diehl
fbd61fda99
ignore comments
2020-04-02 11:54:34 +02:00
Martin Diehl
01818cba80
tuples not needed for single arguments
2020-03-31 12:44:39 +02:00
Martin Diehl
6ef7410e5a
testing VTK wrappers
2020-03-31 11:04:06 +02:00
Martin Diehl
2f52165e0a
for test coverage reports using pytest
2020-03-30 22:14:45 +02:00
Martin Diehl
396d428af7
bugfix: works for all cuboids, not just cubes
2020-03-29 23:09:43 +02:00
Martin Diehl
e334674a06
test bycristal tessellation
2020-03-29 20:28:54 +02:00
Martin Diehl
9c90aa5acb
polishing
2020-03-29 20:07:09 +02:00
Martin Diehl
e61c1a027b
avoid detour via shell
2020-03-29 19:12:23 +02:00
Martin Diehl
bbce3456e8
advise from pylint
2020-03-22 22:30:38 +01:00
Martin Diehl
1dfdd264b7
small flaws detected by pylint
2020-03-22 16:31:14 +01:00
Martin Diehl
b6d50db177
do not use name of function
2020-03-22 16:21:49 +01:00
Martin Diehl
1e178287fe
4 space indentation
2020-03-22 16:13:35 +01:00
Martin Diehl
76caf422aa
bugfix: wrong indentation
...
strange that python has accepted that
2020-03-22 15:59:25 +01:00
Martin Diehl
3873a3d20d
restoring working structure for config submodule
2020-03-21 22:17:07 +01:00
Martin Diehl
4decae967a
nothing to inherit ..
2020-03-21 20:18:46 +01:00
Martin Diehl
c6025925ac
relative imports within damask package
2020-03-21 20:17:50 +01:00
Martin Diehl
c5e956f386
solver submodule structure working again
2020-03-21 20:14:15 +01:00
Martin Diehl
bcf3650211
slightly shorter.
...
w/o transpose, this seems to be more memory efficient
2020-03-21 19:40:49 +01:00
Martin Diehl
71da974bdc
quick prospector fixes for deprecated class
2020-03-21 18:29:42 +01:00
Martin Diehl
67f64b7a7a
polishing
2020-03-21 18:01:26 +01:00
Martin Diehl
20a06840b0
works also for arrays ...
2020-03-21 11:07:21 +01:00
Martin Diehl
2ad86e4202
shortened
2020-03-20 23:47:54 +01:00
Martin Diehl
eb66db9c36
Merge branch 'no-python-namespace-clutter' into MiscImprovements
2020-03-20 23:46:37 +01:00
Martin Diehl
76984a4dbd
more sensible check
...
works also for numpy arrays. Not sure why the old way is considered to
be "pythonic", I think it can just cause trouble
2020-03-20 23:42:23 +01:00
Martin Diehl
4d4f321872
following python convention
2020-03-20 08:49:33 +01:00
Martin Diehl
0556827f29
less error prone
2020-03-19 20:19:47 +01:00
Martin Diehl
892b7eee98
consistency check and new test
2020-03-19 17:34:49 +01:00
Martin Diehl
705694b97c
fix for test
2020-03-19 15:54:57 +01:00
Martin Diehl
e390982be7
clean first level structure
2020-03-19 15:19:11 +01:00
Martin Diehl
899cc913c4
python style names
2020-03-19 15:09:05 +01:00
Martin Diehl
327899890a
this works for internal
2020-03-19 15:06:25 +01:00
Martin Diehl
9bb0608187
maybe this is the cleaner way
2020-03-19 14:40:30 +01:00
Martin Diehl
c1d82197ad
cope with integers
2020-03-19 13:27:23 +01:00
Martin Diehl
0ebc5ab60e
no need to import modules, hide unwanted functions
2020-03-19 13:16:32 +01:00
Martin Diehl
27532cfa4e
small fixes
2020-03-19 12:03:55 +01:00
Martin Diehl
91e728d065
polishing
2020-03-19 11:30:36 +01:00
Martin Diehl
a80622292e
simplified (and working)
2020-03-19 10:59:53 +01:00
Martin Diehl
7093647af5
clearly show intention
2020-03-19 09:04:36 +01:00
Martin Diehl
0871111c11
consistent and correct number of leading zeros
2020-03-19 08:45:25 +01:00
Martin Diehl
b5899b51e1
do not show tk window on start(python) or exit(Ipython)
2020-03-19 08:31:24 +01:00
Martin Diehl
d6f74daf53
cleaning
...
no DADF5 anymore
2020-03-19 08:13:13 +01:00
Martin Diehl
fbd92599e8
also accept vtkRectilinearGrid etc as type
2020-03-19 08:04:15 +01:00
Martin Diehl
6d0c4b9765
typo
2020-03-19 08:00:13 +01:00
Martin Diehl
d28df815f0
Merge branch 'development' into MiscImprovements
2020-03-19 07:30:03 +01:00
Martin Diehl
7d47418381
migrating to new Table class ...
...
... and stripping old ASCIItable down
2020-03-19 07:27:11 +01:00
Martin Diehl
f7a6ac4a0e
migrating to new table class
2020-03-19 07:27:11 +01:00
Martin Diehl
cbe5944390
cleaning deprecated modules
2020-03-19 07:27:11 +01:00
Martin Diehl
2b777bbbea
use "None" to indicate missing data
...
True/False are user based decisions
2020-03-18 14:29:59 +01:00
Martin Diehl
ee0d80ce2a
following python standard + polishing
2020-03-18 13:49:53 +01:00
Martin Diehl
45e3b8f7c6
no brackets for reshape required
2020-03-17 12:25:44 +01:00
Martin Diehl
25b3fa4427
image data seems to work in general with python3 ...
...
... after fix for colormaps
imageDataDeformed is based on the core module, i.e. it has not been used
for years. Either update soon or remove
2020-03-17 11:53:59 +01:00
Martin Diehl
bb90539f7c
only ignore temporary files in the respective folders
2020-03-16 22:50:09 +01:00
Martin Diehl
794d7e485e
bugfix: report again correctly
2020-03-16 22:50:09 +01:00
Martin Diehl
941a9fbff4
fixing prospector complaints
2020-03-14 22:56:13 +01:00
Martin Diehl
554631d554
whitespace adjustments
2020-03-14 22:31:36 +01:00
Martin Diehl
f9aea736cb
there is a function for that
2020-03-14 22:26:47 +01:00
Martin Diehl
6dcb5b0d0d
vectorize
2020-03-14 22:24:45 +01:00
Martin Diehl
0becd8c20b
not needed
2020-03-14 22:21:31 +01:00
Martin Diehl
b4679fabfc
whitespace cleaning and other polishing
2020-03-14 22:17:59 +01:00
Martin Diehl
5c4ddf5138
Merge branch 'development' into MiscImprovements
2020-03-14 12:52:30 +01:00
Martin Diehl
3d8e8cfe7a
tkinter might not work
2020-03-14 00:07:49 +01:00
Martin Diehl
771663c944
polishing
2020-03-13 00:30:49 +01:00
Martin Diehl
81e98055dd
polishing
2020-03-12 19:52:33 +01:00
Martin Diehl
6fbace8220
stub: show rendered geometry
2020-03-12 15:10:44 +01:00
Martin Diehl
827f354435
only store points, no vertices
...
visualize via 'Points Gaussian', not 'Points' in paraview.
+ adding displacements for points
2020-03-12 12:28:28 +01:00
Martin Diehl
4c915eddbc
inform the user
2020-03-12 08:30:33 +01:00
Martin Diehl
dafc48dcc7
polishing
2020-03-12 08:22:37 +01:00
Martin Diehl
a6a73cdc0f
polishing
...
grid is interpreted again in the DAMASK meaning, i.e it specifies the
number of cells, not the number of nodes
2020-03-12 06:54:40 +01:00
Martin Diehl
bb2019810a
centralizing functionality
2020-03-12 00:00:47 +01:00
Martin Diehl
575da581a9
support for point cloud
2020-03-11 22:35:58 +01:00
Martin Diehl
744e3bb50b
vectorized cell assignment + bugfix for writing out
2020-03-11 21:29:24 +01:00
Martin Diehl
f324e67f7b
fix: nodes need to be converted to vtk type
...
some stub definitions
2020-03-11 18:08:58 +01:00
Martin Diehl
c92a6ad459
simpler
...
and system independent
2020-03-11 07:50:11 +01:00
Martin Diehl
32734e7dce
using central functionality
2020-03-11 07:42:32 +01:00
Martin Diehl
b3e8a4405e
better use centralized functionality
2020-03-11 06:50:13 +01:00
Martin Diehl
a024ec378a
new class should be accesible as damask.VTK
2020-03-11 06:49:14 +01:00
Martin Diehl
9878ddc550
easier way to show data.
...
needs information on geometry (structured/unstructured) and probably we
should list not more than 5 incs
2020-03-11 06:28:13 +01:00