Sharan Roongta
21f095c9d8
Merge branch 'flexible-yaml-dump' into development
2020-10-28 16:19:17 +01:00
Martin Diehl
5f03e8cf8f
0-based material indices
2020-10-28 09:31:55 +01:00
Martin Diehl
a5a127b787
new tests+ updated results
2020-10-27 16:46:08 +01:00
Martin Diehl
0804e6ee74
pythonic names
2020-10-27 13:50:47 +01:00
Martin Diehl
201a62d7c9
easier visualization if verts have a point-cell
2020-10-27 13:19:53 +01:00
Martin Diehl
4dd387d7f5
compatibility with old pyyaml + test for numpy
2020-10-27 06:39:58 +01:00
Martin Diehl
bac7ace413
Merge remote-tracking branch 'origin/general-N_constituents' into vtr-only
2020-10-13 17:39:19 +02:00
Martin Diehl
86d91baf90
0-offset for geom
2020-10-10 10:36:15 +02:00
Martin Diehl
ffabeacbcb
removing functionality related to deprecated 'geom' format
2020-10-10 09:41:11 +02:00
Martin Diehl
00e2128e03
don't test ASCII functionality
...
vtr writing in Geom class is alwas serial, no need to wait
2020-10-10 09:02:25 +02:00
Martin Diehl
0c68d293b6
N_constituents is now a general homog property
2020-10-09 07:44:05 +02:00
Martin Diehl
1b18cae46b
adjusted to new names
2020-10-02 17:49:52 +02:00
Martin Diehl
a04966582a
Merge remote-tracking branch 'origin/development' into general-config
2020-10-02 14:54:16 +02:00
Martin Diehl
58229b8851
relaxed test conditions
...
even threshold between -.5 and +.5 can result in a single material.
2020-10-02 13:26:11 +02:00
Philip Eisenlohr
a59e64a8e4
renamed TPMS and added more from additional references
2020-09-30 17:28:25 -04:00
Martin Diehl
33685bc493
allow user do control output style
...
(numerics.yaml looks strange otherwise)
2020-09-30 12:32:37 +02:00
Martin Diehl
5ad46ae021
completely tested
2020-09-30 09:05:23 +02:00
Martin Diehl
bbed4f9c6e
nice formatting
...
will be checked by pre-receive hook
2020-09-30 08:15:02 +02:00
Martin Diehl
b383a4530e
better name, subclassing for easy extension to load
2020-09-30 07:53:25 +02:00
Martin Diehl
54e4943353
get rid of shell scripts
2020-09-30 07:11:33 +02:00
Martin Diehl
76f07e4c1e
tmp_path is preferred over tmpdir
2020-09-29 19:25:50 +02:00
Martin Diehl
8d204ea445
[skip ci] small simplification
2020-09-28 16:17:43 +02:00
Martin Diehl
d2cfcdaca0
reference Data for ODF sampling (hybridIA) + skeleton of a test
2020-09-28 16:14:27 +02:00
Martin Diehl
95b85626d8
general hybridIA functionality
2020-09-28 07:40:43 +02:00
Martin Diehl
9e3506b8ef
thorougly testing seeding functionality
2020-09-25 07:41:58 +02:00
Martin Diehl
e8454c40c7
more tests
2020-09-24 22:59:31 +02:00
Martin Diehl
4960cf43d4
documented and tested
2020-09-24 21:43:04 +02:00
Martin Diehl
e5b414419a
Poisson disc for periodic situation
2020-09-24 21:26:16 +02:00
Martin Diehl
ec23ab8b61
basic test for seeding
2020-09-24 21:06:26 +02:00
Martin Diehl
b5ea04424b
Merge remote-tracking branch 'origin/development' into seeds-module
2020-09-24 20:58:53 +02:00
Philip Eisenlohr
8c8db5b99f
switched "Geom.materials" to "Geom.material"
2020-09-23 17:27:15 -04:00
Martin Diehl
ae579d8baa
allow to specify seed IDs explicitly
2020-09-23 09:28:00 +02:00
Philip Eisenlohr
683161d479
Merge branch 'development' into geom-fully-out-of-place
2020-09-22 15:22:58 -04:00
Philip Eisenlohr
05835bacd3
removed set_X(), duplicate(), and .homogenization; renamed ".microstructure" to ".materials"
2020-09-22 14:49:28 -04:00
Franz Roters
7801f527f2
Merge remote-tracking branch 'origin/load-save-X-no-suffix' into development
2020-09-22 14:57:39 +02:00
Philip Eisenlohr
188905766f
removed Geom.get_X() methods in favor of direct property access
2020-09-21 11:13:53 -04:00
Philip Eisenlohr
ca2f3f9493
set_X and add_comments methods now default to out-of-place
2020-09-21 10:29:07 -04:00
Martin Diehl
7bdd44a3d9
consistent names:
...
default file operations: save/load, non-default save_xx/load_xx
2020-09-20 22:04:28 +02:00
Martin Diehl
d33507866d
statistically more valid test
2020-09-20 21:50:52 +02:00
Martin Diehl
6ab88aad2b
default format for Table is ASCII
...
hence, renamed load_ASCII/save_ASCII to load/save
2020-09-20 20:45:06 +02:00
Martin Diehl
5895e74029
p is never above 1
...
1e-4 is quite low, usually we are far above. 1e-3 from https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.normaltest.html
is not too far away.
2020-09-20 19:13:54 +02:00
Philip Eisenlohr
5b0b0de6b4
assertion reports offense; fixed seeds for spherical and fiber
2020-09-20 12:22:41 -04:00
Philip Eisenlohr
3cc319ef08
removed debug print statement in test_util
2020-09-19 14:30:58 -04:00
Philip Eisenlohr
7cbd422ae3
fixed coprime error when encountering NaN
2020-09-19 13:38:32 -04:00
Martin Diehl
6f45203c98
first version of a pyaml based class for material configuration
...
pyaml is (again) actively maintained and the ruamel.pyaml API is
instable
2020-09-19 13:01:19 +02:00
Martin Diehl
c42511f101
small polishing
2020-09-18 16:32:59 +02:00
Martin Diehl
1849ff0330
polishing
2020-09-18 15:03:51 +02:00
Martin Diehl
e2cd3da295
remaning to_xx
2020-09-18 14:29:27 +02:00
Martin Diehl
cdf3323774
Merge remote-tracking branch 'origin/development' into load-save-X
2020-09-18 14:21:43 +02:00
Martin Diehl
ec7dbb4c9a
do not store temp files
2020-09-18 14:21:30 +02:00
Martin Diehl
70911b64ea
Merge branch 'development' into texture-components-in-rotation-class2
2020-09-16 09:57:50 +02:00
Philip Eisenlohr
c6be6fe87f
fixed spherical component sampling and testing
2020-09-15 18:40:05 -04:00
Philip Eisenlohr
0a34e342e4
fixed fiber component sampling and testing
2020-09-15 18:14:15 -04:00
Martin Diehl
9e93e8b710
test for last commit
2020-09-15 19:59:03 +02:00
Martin Diehl
3f823ca717
testing general case
2020-09-15 14:39:05 +02:00
Martin Diehl
18c38f1284
polishing
2020-09-15 13:49:44 +02:00
Martin Diehl
2a082b7983
methods for texture component calculations
2020-09-15 12:11:46 +02:00
Philip Eisenlohr
96ad358f83
modified file reading/writing methods to load_X, save_X formalism
2020-09-15 01:14:05 -04:00
Martin Diehl
f6758ecc28
table class operates out of place
2020-09-14 07:04:01 +02:00
Philip Eisenlohr
9fb3fef4b0
changed British "normalise" to US "normalize" as we (should) follow US English everywhere else.
2020-09-08 10:39:31 -04:00
Philip Eisenlohr
a4785ba562
modified file writing of geom and table to a general to_file() that takes a "format=" argument
2020-09-03 10:53:16 -04:00
Philip Eisenlohr
d645849baf
fixed remnant occurrences of .write() --> .to_file()
2020-09-02 11:32:40 -04:00
Philip Eisenlohr
6785062a10
Merge branch 'development' into 'vtk-to-file-method'
...
# Conflicts:
# python/tests/test_VTK.py
2020-08-31 21:10:29 +02:00
Martin Diehl
03b02ad641
typos/sentence
2020-08-29 16:06:10 +02:00
Martin Diehl
0d5279863d
avoid rounding errors related to rotation
2020-08-27 09:33:09 +02:00
Martin Diehl
248ef8ef97
more tests
...
- invalid files
- scalar/array size,center,exponent for add_primitive
- rotation invariance for add primitive
2020-08-26 23:56:20 +02:00
Philip Eisenlohr
3f24d16603
renamed VTK.write() to VTK.to_file()
2020-08-26 16:15:15 -04:00
Martin Diehl
fee21cbd9c
more sensible tests
2020-08-25 17:17:49 +02:00
Martin Diehl
96d4975fc4
using numpy functionality
2020-08-25 08:34:04 +02:00
Martin Diehl
51da632108
aiming at testing each individual statement
2020-08-25 07:49:56 +02:00
Martin Diehl
2d98325fa4
increasing test coverage
2020-08-25 01:21:17 +02:00
Martin Diehl
453f5a14c5
duplicated test (w/o wait for parallel out)
2020-08-25 00:53:05 +02:00
Philip Eisenlohr
2560f014a3
Merge remote-tracking branch 'origin/increase-geom-test-coverage' into geom-out-of-place
2020-08-24 17:17:31 -04:00
Martin Diehl
9d505c8518
better readable
...
- more explicit reporting
- always relative import for DAMASK
2020-08-24 09:58:24 +02:00
Martin Diehl
b393da4955
relative imports
...
... it's all about damask.XXX
2020-08-24 07:28:10 +02:00
Philip Eisenlohr
3738002e4a
forgot the new reference files...
2020-08-23 22:27:53 -04:00
Philip Eisenlohr
446ac03b07
All geom methods are now out-of-place, i.e. return an updated duplicate (to allow for daisy chaining).
...
* Added comments when methods acted.
* Added diff method
* Added flip method
* Fixed add_primitive inversion bug (again...)
* Fixed cell centering bug in add_primitive
* Added missing tests
2020-08-23 19:43:46 -04:00
Martin Diehl
22da3af92e
cleaning (prospector complaint)
2020-08-24 00:44:18 +02:00
Martin Diehl
c7cbd961a1
more systematic monkeypatching
...
allows comparison of reference files (log/history does not contain
information about damask.version and datetime.datetime.now)
2020-08-24 00:31:38 +02:00
Martin Diehl
6f79573140
more test coverage
2020-08-23 11:05:56 +02:00
Martin Diehl
07af7b2f98
geom is written to vtr exlcusively, not to general vtk
...
base tests on vtr
2020-08-23 10:50:15 +02:00
Martin Diehl
975db01f31
microstructure -> materialpoint
...
at least for new functionality
2020-08-23 09:38:08 +02:00
Martin Diehl
b731b1e768
Geom.to_vtk improvements
...
- should be integer
- should have a test
2020-08-23 08:49:49 +02:00
Philip Eisenlohr
499ce01748
added Geom.copy() method
2020-08-22 13:57:31 -04:00
Philip Eisenlohr
752d6f773b
corrected add_primitive test
2020-08-09 23:14:32 +02:00
Martin Diehl
0c6ce390b5
simple IO tests
...
can be improved ...
2020-08-08 20:35:50 +02:00
Martin Diehl
6a5471d243
have microstructure with 'to' and 'of'
2020-08-08 20:24:36 +02:00
Martin Diehl
55a620b378
migrating to library
2020-08-08 20:14:30 +02:00
Martin Diehl
a0e0f28e51
migrating shell scripts to library
2020-08-08 19:42:34 +02:00
Martin Diehl
5fcff876f9
replace selectively
...
useful for vicinity_offset and add_primitive
2020-08-08 18:41:47 +02:00
Karo
7824a61f2e
Merge branch 'user_defined_add_calculation' into 'development'
...
User defined add calculation
See merge request damask/DAMASK!195
2020-08-06 00:53:16 +02:00
Philip Eisenlohr
ce00371f52
fixed rounding bug and updated reference images
2020-08-05 10:44:10 -04:00
Martin Diehl
7d49606597
restored correct bound calculation
...
test different bounds options
2020-08-04 20:34:40 +02:00
Martin Diehl
e07c00a592
polishing + simple test
...
autoscaling seems to be broken
2020-08-04 20:14:04 +02:00
Martin Diehl
3f2e63977d
not needed anymore
2020-07-31 19:46:44 +02:00
Martin Diehl
72ea9a5cec
non-vectorized formulas can be implemented in a user function
2020-07-31 19:42:44 +02:00
Martin Diehl
50d7842dbe
more tests
2020-07-31 16:50:01 +02:00
Martin Diehl
daab5a8952
polishing
2020-07-24 22:42:16 +02:00
Martin Diehl
326b82b3aa
symmetric scatter around nominal value
2020-07-24 22:41:41 +02:00
Martin Diehl
b0e06f180a
reading numpy manual ...
...
https://numpy.org/doc/stable/reference/generated/numpy.isclose.html
rtol=1.e-8, b=1 gives atol+btol=1.e-8+1e-9, simplified to 1e-8
2020-07-13 22:48:29 +02:00
Francisco Jose Gallardo Basile
e1bbaac0d7
Merge branch 'Vectorize-Orientation' into 'development'
...
Vectorize orientation
See merge request damask/DAMASK!186
2020-07-03 12:22:04 +02:00
Philip Eisenlohr
d4f97f8346
Merge branch 'misc-improvements' into 'development'
...
Misc improvements
See merge request damask/DAMASK!184
2020-07-02 21:52:47 +02:00
Philip Eisenlohr
81b3c10305
removed ambiguous variable "l"
2020-07-02 10:37:57 -04:00
Philip Eisenlohr
368a241931
added testing of __iadd__ and __invert__
2020-07-02 10:27:52 -04:00
Martin Diehl
4abd77fccf
more test coverage
2020-07-01 17:31:16 +02:00
Martin Diehl
be1eb996e0
more tests and cleaning
2020-07-01 15:12:34 +02:00
Martin Diehl
a7e3dd5a56
Merge branch 'development' into Vectorize-Orientation
2020-07-01 13:30:39 +02:00
Martin Diehl
e18a5b8a1b
simplifications + more tests
2020-07-01 08:57:28 +02:00
Martin Diehl
de8e9b5fc1
fast reduced operation
2020-07-01 00:37:02 +02:00
Martin Diehl
23365660d8
polishing
2020-06-30 23:18:32 +02:00
Martin Diehl
ef0c78745a
fix for vectorized in_SST + test
2020-06-30 23:05:41 +02:00
Martin Diehl
49d448dced
vectorized and cleaned
2020-06-30 21:43:57 +02:00
Martin Diehl
9a83b11a99
testing IPF color (vectorization)
2020-06-30 18:41:59 +02:00
Martin Diehl
bdb461a553
more flexible and independent
2020-06-30 18:12:39 +02:00
Martin Diehl
6e27a140f6
better split
2020-06-30 17:35:52 +02:00
Martin Diehl
3d6afff27a
clearer name
2020-06-30 17:30:29 +02:00
Martin Diehl
be21d1289d
using slicing method
2020-06-30 16:33:04 +02:00
Martin Diehl
c86e3e292c
WIP: cleaning namespace
2020-06-30 14:07:10 +02:00
Martin Diehl
9d94b521ad
polishing
2020-06-30 13:31:58 +02:00
Martin Diehl
ce7018164f
WIP: more reasonable naming
2020-06-30 13:05:06 +02:00
Philip Eisenlohr
8dc87023d1
test from_range; update ASCII colormap labels (i_RGBA)
2020-06-29 22:23:24 -04:00
f.basile
d06daec4cb
reducec vectorized is improved
2020-06-29 18:25:45 +02:00
Martin Diehl
a657125840
standard version string
2020-06-28 19:30:23 +02:00
Martin Diehl
c7eb56a63d
single precision reference files
2020-06-28 19:25:58 +02:00
Martin Diehl
37f7362cbe
Merge branch 'development' into misc-improvements
2020-06-28 19:23:17 +02:00
Martin Diehl
323f828606
Merge branch 'development' into modernize_colormap
2020-06-28 19:09:52 +02:00
f.basile
352c4e95f1
more vectorized
2020-06-28 19:03:06 +02:00
Martin Diehl
1cfa6d44d9
dummy version could be useful for other tests
...
note that monkey patching requires direct access to damask.version in
the respective modules.
'from xx import yy' creates a copy (at least for the version string).
2020-06-28 11:51:30 +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
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
f4d13bc810
binary representation depends on vtk lib version
2020-06-28 10:07:31 +02:00
Martin Diehl
8d5a72e936
more test, swich to pathlib
2020-06-27 23:38:58 +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
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
a69f82e7c3
speed up vtk out
...
- limit to single precision
- write in background
2020-06-26 11:45:54 +02:00
Martin Diehl
27220a03bc
not invalid anymore
2020-06-25 09:23:43 +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
14d3b7e66d
more f-stringing
2020-06-24 16:59:55 -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
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
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
1648963b57
vectorized equivalent orientation calculation
2020-06-18 22:53:04 +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
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
eae9698d22
equivalent,related and inFZ vectorized + pytest
2020-06-05 13:48:12 +02:00
Martin Diehl
c67fbacfc7
higher test coverage
...
- invalid operations
- legacy output
2020-06-03 11:03:31 +02:00
Martin Diehl
72a0b1fae5
testing and polishing
2020-06-01 11:33:22 +02:00
Martin Diehl
1afa00a19c
testing systematically all possibilities
2020-05-28 08:05:16 +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
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
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
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
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
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
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
a26cba1457
calling a few missing statements
2020-05-24 09:06:11 +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
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
353fd3ceb6
more tests
...
now 95% test coverage of Rotation class
2020-05-20 19:16:31 +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
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
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
a25dd1c438
cleaning
2020-05-19 07:57:40 +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
61ac40c259
more tests
2020-05-16 13:54:53 +02:00
Martin Diehl
9fa1539163
using new names
2020-05-16 11:17:12 +02:00
Martin Diehl
2dc46b783a
simplified and tested
2020-05-16 00:58:40 +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
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
Vitesh Shah
307debebd4
Correct shapes for gradient calculations
2020-05-05 10:22:23 +02:00
Vitesh Shah
0650f46ab1
Tests for gradient
2020-05-05 10:13:30 +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
b88f5ec0c8
clean up
2020-05-01 14:53:40 +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
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
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
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
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
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
Karo Sedighiani
03aa6f9c80
Merge branch 'vectorize_rotation' into development
2020-04-14 19:34:11 +02:00
Martin Diehl
c0c37fe6a5
polishing
2020-04-11 20:42:46 +02:00
Martin Diehl
8c61f67e34
cleaning
2020-04-11 18:24:54 +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
59b0a6e825
tuples not needed/avoid eval
2020-04-10 13:07:05 +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
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
10d5b2e791
testing some special cases
2020-04-08 13:41:46 +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
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
d6f74daf53
cleaning
...
no DADF5 anymore
2020-03-19 08:13:13 +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
7a0c20b6de
Merge branch 'development' into python-style
2020-03-05 22:00:58 +01:00
Martin Diehl
4970f22e13
better name
...
damask.Result is more appropriate then damask.DADF5
2020-03-02 23:05:35 +01:00
Martin Diehl
fd11f073f0
fixing prospector complaints
2020-02-22 00:11:00 +01:00
Martin Diehl
a6279c8284
use separate test definitions per class
2020-02-22 00:03:54 +01:00
Martin Diehl
a433f7ef54
style unification
...
backport from dadf5-usability branch
2020-02-21 13:03:50 +01:00
Martin Diehl
c1caef4bc9
fixing prospector complaints
2020-02-21 08:13:10 +01:00
Martin Diehl
95cfa3f173
more tests...
2020-02-16 10:04:33 +01:00
Martin Diehl
36c1744a59
proper indentation
2020-02-16 09:21:21 +01:00
Martin Diehl
5235c27ad0
making new mechanics functions available for DADF5
...
+ testing them
2020-02-15 17:56:20 +01:00
Martin Diehl
118c03c485
tests for new functionality
2020-02-15 16:59:30 +01:00
Martin Diehl
e46395be41
sorted alphabetically
2020-02-15 14:21:23 +01:00
Martin Diehl
79533b075e
eigenvalues is more specific name than principal components
2020-02-15 13:56:15 +01:00
Martin Diehl
4c28e7f626
better have tests
2020-02-01 09:44:21 +01:00
Martin Diehl
fa39a7423b
preparing for actual use
2020-01-29 13:20:16 +01:00
Martin Diehl
6fed655500
fix for new style and test
2020-01-26 10:17:27 +01:00
Martin Diehl
7f92418fc4
shapes should also match
2020-01-26 10:01:00 +01:00
Martin Diehl
54d1c35c45
Merge branch 'development' into python-module
2020-01-24 08:42:28 +01:00
Martin Diehl
2ba0752b71
ensure that symmetrically equivalent rotations have the same IPF color
2020-01-14 23:56:52 +01:00
Martin Diehl
2bc93b643a
testing IPF color values for cube
2020-01-14 23:17:47 +01:00
Martin Diehl
8a674d0279
2 bugfixes:
...
- mixed up other and me when removing quaternion class
- 1000 random orientations are enough for testing
2020-01-14 22:30:08 +01:00
Martin Diehl
18d6d364ec
adjustment to tolerances
...
Rodrigues test is 'prone' to fail due to diverging tangens(pi/2).
Happens only with a very low chance
2020-01-14 10:57:50 +01:00
Martin Diehl
af42eae9c1
Merge branch 'development' into python-module
2020-01-14 08:58:19 +01:00
Philip Eisenlohr
edbee3a419
Merge branch 'development' into python-module
2020-01-13 15:24:08 -05:00
Martin Diehl
7b3015c6bd
relaxed tolerances.
...
one out of multiple thousand tests failed ...
2020-01-13 18:44:50 +01:00
Martin Diehl
f9772a3df8
more descriptive name
2020-01-13 02:51:49 +01:00
Martin Diehl
97ddd56540
avoid strange deformation gradients
...
otherwise, the test fails in a few cases (determinants were in the range
1e-5 to 1e16)
2020-01-11 23:44:11 +01:00
Martin Diehl
aec9c601d6
some insights from continuum mechanics formulated as test
2019-12-23 15:34:13 +01:00
Martin Diehl
2cb3213e37
improvements to Table class
...
- string comparison should be '!=' not 'is not', latter compares
object, not value
- functions for common operations: append (vstack, growTable) and join
(hstack, addTable)
2019-12-22 22:21:32 +01:00
Martin Diehl
48c21045d7
centralized functionality for ang import
2019-12-22 14:57:57 +01:00
Martin Diehl
e08b096f08
just to make sure ...
2019-12-21 23:43:56 +01:00
Martin Diehl
2cd2d6f506
cell_2_node/node_2_cell work only for periodic data
...
hence, coordinates and displacements cannot be converted easily
2019-12-21 18:07:04 +01:00
Martin Diehl
2c5f7d3b5a
Merge branch 'development' into grid-filters
2019-12-20 14:32:20 +01:00
Franz Roters
034367fa6a
Merge remote-tracking branch 'remotes/origin/noPostResults' into development
2019-12-20 11:40:57 +01:00
f.basile
57a69ad4c9
Reupload PDF pole figures.
2019-12-13 13:32:16 +01:00
f.basile
0c30f6b1df
Polishing Mtex script for plotting pole figures.
2019-12-13 12:52:33 +01:00
Philip Eisenlohr
41ed7ce462
"pip install damask" either locally or from PyPI after upload
2019-12-12 14:32:51 -05:00
Martin Diehl
fcbe4ee5a2
[skip ci] polishing
2019-12-11 18:08:51 +01:00
Martin Diehl
bd12ef83b9
parametrizing
2019-12-11 18:01:24 +01:00
f.basile
562d216fa9
bcc is passive rotation and fcc is active rotation
2019-12-11 09:23:12 +01:00
Martin Diehl
e142d00d02
test now sensible to wrong rename
2019-12-10 20:05:24 +01:00
f.basile
ca06c1d3a2
Fix bugs in relatedOperations for NW,GT and GTprime.
2019-12-10 13:49:33 +01:00
Martin Diehl
5a9173ccf4
might simplify plotting in MTEX
2019-12-08 21:57:07 +01:00
Martin Diehl
fa9ee6b116
using reference results for orientation relationships
2019-12-08 21:48:32 +01:00
Martin Diehl
53cb59fc47
use pytest instead of hand-written test class
2019-12-08 21:29:26 +01:00
Martin Diehl
b56864552f
testing forward <-> backward conversion
2019-12-08 21:05:34 +01:00
Sharan Roongta
96710a238d
Merge branch 'development' of magit1.mpie.de:damask/DAMASK into incs-no-leading-zero
2019-12-06 15:25:21 +01:00
Martin Diehl
4ddfd82304
better names
2019-12-05 18:32:21 +01:00
Martin Diehl
b1ff178109
Merge branch 'new-ASCII' into grid-filters
2019-12-05 18:06:56 +01:00
Philip Eisenlohr
2648a67dcd
fixed sort_by to respect updated index (upon subsequent adding of new data)
2019-12-05 12:02:10 -05:00
Martin Diehl
e7358746dc
taking care of prospector complaints
...
variables in 'eval' are hidden
2019-12-05 10:54:35 +01:00
Martin Diehl
274aaa7359
Merge branch 'new-ASCII' into grid-filters
2019-12-05 10:50:56 +01:00
Martin Diehl
1018b89296
nice to have..
2019-12-05 10:48:42 +01:00
Martin Diehl
f885748a58
variable was never used
2019-12-05 08:43:14 +01:00
Martin Diehl
469d638afb
making table class feature complete
2019-12-05 06:57:09 +01:00
Martin Diehl
ee8e3386f4
shorter but still descriptive names
2019-12-05 06:16:29 +01:00
Martin Diehl
e7a67262f8
clear enough
2019-12-05 06:00:49 +01:00
Martin Diehl
2172e92e7e
test exotic input files
2019-12-05 05:57:47 +01:00
Martin Diehl
07e9778798
one more test
2019-12-04 10:20:57 +01:00
Martin Diehl
bc41bbbec5
test coordinates-related functions
2019-12-04 09:23:08 +01:00
Martin Diehl
285075bb6b
ordered alphabetically
2019-12-04 06:15:32 +01:00
Martin Diehl
6902d3dd0a
repeated test
...
better sort alphabetically
2019-12-04 06:04:06 +01:00
Martin Diehl
6c31e22855
testing new style DADF5 file
2019-12-04 05:59:52 +01:00
Martin Diehl
32ebcea207
more tests
2019-12-04 05:49:43 +01:00
Martin Diehl
3effea8e1d
also check operations that should NOT work
2019-12-03 17:03:03 +01:00
Martin Diehl
f5bbd3cf22
ensure functionality through unit testing
2019-12-03 16:39:54 +01:00
Martin Diehl
80002e6cfd
proper capitalization
2019-11-27 13:21:41 +01:00
Martin Diehl
af78aaf2f1
testing rescale
2019-11-25 14:01:40 +01:00
Martin Diehl
b757f02649
avoid repetitions
2019-11-25 12:04:57 +01:00
Martin Diehl
6d25506204
test for new pack functionality
2019-11-25 09:28:59 +01:00
Martin Diehl
928a5c2e55
better use fixtures
2019-11-24 06:29:00 +01:00
Martin Diehl
2b392241f9
Merge branch 'PythonImprovements' into pytest
2019-11-23 19:25:22 +01:00
Martin Diehl
3be1caa4ef
read_dataset has at least two dimensions
2019-11-23 19:21:41 +01:00
Martin Diehl
eb80a82e05
first idea how to test pointwise operations
2019-11-23 18:58:44 +01:00
Martin Diehl
e3f8195621
no not change line endings
2019-11-23 17:08:36 +01:00
Martin Diehl
4dc4442fae
small DADF5 file for testing
2019-11-23 16:15:08 +01:00
Martin Diehl
510e4752fd
using parametrized tests for better coverage
2019-11-23 14:03:47 +01:00
Martin Diehl
2810531c97
a test with reference results
2019-11-23 13:37:03 +01:00
Martin Diehl
a26a5738dd
polishing
2019-11-21 21:48:54 +01:00
Martin Diehl
e0f3fe3cc0
ported from hand written test class
2019-11-21 21:01:01 +01:00
Martin Diehl
a3376a35b7
testing mechanics module with pytest
2019-11-21 20:00:28 +01:00