Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TurTLE
TurTLE
Commits
3bcd42de
Commit
3bcd42de
authored
May 08, 2017
by
Chichi Lalescu
Browse files
resizing of source field seems to be working
parent
37750597
Changes
1
Hide whitespace changes
Inline
Side-by-side
bfps/DNS.py
View file @
3bcd42de
...
...
@@ -813,11 +813,12 @@ class DNS(_code):
min
(
dst_shape
[
1
],
src_file
[
src_dset_name
].
shape
[
1
]),
min
(
dst_shape
[
2
],
src_file
[
src_dset_name
].
shape
[
2
]),
3
)
print
(
self
.
ctype
)
dst_file
.
create_dataset
(
dst_dset_name
,
shape
=
dst_shape
,
dtype
=
self
.
ctype
,
fillvalue
=
0.0
)
dtype
=
np
.
dtype
(
self
.
ctype
)
,
fillvalue
=
complex
(
0
)
)
for
kz
in
range
(
min_shape
[
0
]):
dst_file
[
dst_dset_name
][
kz
,:
min_shape
[
1
],
:
min_shape
[
2
]]
=
\
src_file
[
src_dset_name
][
kz
,
:
min_shape
[
1
],
:
min_shape
[
2
]]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment