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
neams-th-coe
large-problems
Commits
f15da2dd
Commit
f15da2dd
authored
Nov 02, 2020
by
Patrick Shriwise
Browse files
Adding scaling factor to the data to text conversion script.
parent
520914e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
11145_pebbles/dat_to_
csv
.py
→
11145_pebbles/dat_to_
txt
.py
View file @
f15da2dd
...
...
@@ -11,4 +11,5 @@ with open('11145_pebble_yuhsiang_E3p5M_peb.11k.dat', 'r') as fh:
centers
=
np
.
fromfile
(
fh
,
sep
=
' '
,
dtype
=
float
)
centers
=
centers
.
reshape
((
centers
.
size
//
3
,
3
))
centers
*=
1.5
np
.
savetxt
(
'centers.txt'
,
centers
)
Write
Preview
Markdown
is supported
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