mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
PEP8 fixes on convert_precision.py
This commit is contained in:
parent
a522e0d040
commit
a8bc52e07a
1 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh env python
|
||||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import glob
|
||||
|
|
@ -14,10 +14,10 @@ for adir in dirs:
|
|||
if len(files) > 0:
|
||||
|
||||
files = files[0]
|
||||
with open(files,'r') as fh:
|
||||
with open(files, 'r') as fh:
|
||||
intxt = fh.read()
|
||||
intxt = intxt.replace('14.8E','12.6E')
|
||||
with open(files,'w') as fh:
|
||||
intxt = intxt.replace('14.8E', '12.6E')
|
||||
with open(files, 'w') as fh:
|
||||
fh.write(intxt)
|
||||
|
||||
os.chdir('..')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue