Commit Graph

273 Commits

Author SHA1 Message Date
Martin Diehl a416f5ed5b encode/decode for h5py3 not needed anymore
attribute values with variable-length strings will be interpreted as
str, not bytes
2020-11-05 16:13:29 +01:00
Martin Diehl 708c83dcf1 polishing 2020-11-05 07:15:59 +01:00
Martin Diehl 1fcf9cb721 don't compute silently the wrong von Mises kind
and allow the user to set it explicitly
2020-11-05 05:48:12 +01:00
Martin Diehl 7341b9830a h5py v 3.x handles strings differently 2020-11-05 05:39:45 +01:00
Martin Diehl 0804e6ee74 pythonic names 2020-10-27 13:50:47 +01:00
Martin Diehl fa67a2ddf8 cell_coordinates is now a property 2020-10-27 13:35:14 +01: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
Philip Eisenlohr 96ad358f83 modified file reading/writing methods to load_X, save_X formalism 2020-09-15 01:14:05 -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
Franz Roters 6986d20b32 Merge branch 'geom-out-of-place' into 'development'
Geom methods are now out-of-place, i.e. return an updated duplicate

See merge request damask/DAMASK!203
2020-08-31 12:39:01 +02:00
Martin Diehl c58693328e don't try to access folders that don't exist
this happened in the case when different types of output exist in
different phases, e.g.

Aluminum: generic, plastic, sources
Steel: generic, plastic

We are a little bit inconsistent because 'generic' and 'plastic' are
always created (even if empty) but 'sources' will only exist if it
contains output. In future, we should have only folders that actually
contain data
2020-08-28 12:45:41 +02:00
Martin Diehl c5761831e2 more meaningful message
if add_xxx (Results) does not find matching datasets, inform the user
about this fact instead of saying
TypeError: object of type 'IMapUnorderedIterator' has no len()
2020-08-27 00:14:37 +02:00
Philip Eisenlohr 3f24d16603 renamed VTK.write() to VTK.to_file() 2020-08-26 16:15:15 -04:00
Martin Diehl 9a2ac31545 explicit is better then implicit 2020-08-24 23:35:46 +02:00
Martin Diehl 55443a3ff5 reflect change of variable names in file layout version 2020-08-24 22:54:09 +02:00
Martin Diehl a9f53f4822 non-vectorized formulas can be implemented in a user functionc 2020-07-31 17:04:14 +02:00
Martin Diehl 50d7842dbe more tests 2020-07-31 16:50:01 +02:00
Martin Diehl aadce1e554 Merge branch 'development' into user_defined_add_calculation 2020-07-31 16:15:31 +02:00
Martin Diehl 6259984e93 simplified
complicated, but allows to use functions as properties
2020-07-15 20:54:37 +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
Martin Diehl 7b3d1204fa easier to use 2020-07-03 07:29:31 +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 7b899f1ff1 fixed output number format width for single increment0 2020-07-02 11:33:09 -04:00
Martin Diehl a7e3dd5a56 Merge branch 'development' into Vectorize-Orientation 2020-07-01 13:30:39 +02:00
Martin Diehl 49d448dced vectorized and cleaned 2020-06-30 21:43:57 +02:00
Martin Diehl b3f5ee022a unified style 2020-06-28 11:40:19 +02:00
Martin Diehl 1f9b5280cb forgotten debug statement 2020-06-26 11:47:04 +02:00
Martin Diehl bddb514072 more systematic reporting 2020-06-26 11:45:06 +02: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 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 a9c61ede69 bugfix: should also work if DAMASK_NUM_THREADS is not set 2020-06-03 20:24:18 +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 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
Martin Diehl 908788271a Merge branch 'misc-improvements' into less-shell-scripts 2020-05-26 07:24:03 +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 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 dad7c7a2a0 Merge branch 'vectorize_rotation' into misc-improvements 2020-05-25 15:50:03 +02:00
Martin Diehl 39505507f1 not needed anymore 2020-05-25 08:07:12 +02:00
Martin Diehl a3d9520c4b polishing 2020-05-23 15:54:28 +02:00
Martin Diehl 0549e33a00 vectorized/fast 2020-05-23 08:38:57 +02:00
Martin Diehl 7bd681a5ed very simple test 2020-05-22 19:04:02 +02:00
Martin Diehl 23b1381eaf give credit 2020-05-21 11:30:25 +02:00
Martin Diehl 2550447169 Merge branch 'development' into docstring-sphinx-adjustments 2020-05-17 00:10:58 +02:00
Martin Diehl b5b9bfaa99 need space at end of definition list 2020-05-13 11:36:16 +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
Martin Diehl eeb0df3a55 do not store absolute path 2020-05-05 10:42:54 +02:00
Martin Diehl 31c397255d equivalent (for a valid DADF5 file) but faster 2020-05-05 10:18:48 +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 9e79935add Merge branch 'development' into less-shell-scripts 2020-04-28 20:43:16 +02:00
Martin Diehl 1610d5a5d2 Merge branch 'development' into misc-improvements 2020-04-24 20:01:40 +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 a8c6fdd9ba for the sake of completeness 2020-04-22 07:40:02 +02:00
Martin Diehl ac75b9e4ca improved reporting + test 2020-04-21 11:17:15 +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 bbce3456e8 advise from pylint 2020-03-22 22:30:38 +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 eb66db9c36 Merge branch 'no-python-namespace-clutter' into MiscImprovements 2020-03-20 23:46:37 +01:00
Martin Diehl 9bb0608187 maybe this is the cleaner way 2020-03-19 14:40:30 +01:00