Skip to content

Commit

Permalink
blackened code
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed May 16, 2019
1 parent cfa4671 commit 6845076
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ogs5py/fileclasses/msh/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def grid_adapter2D(
element_size=in_res,
)
mesh_in["material_id"] = gen_std_mat_id(mesh_in["elements"], in_mat)
dec = int(np.ceil(-np.log10(min(min(in_res), min(out_res))))+2.0)*2
dec = int(np.ceil(-np.log10(min(min(in_res), min(out_res)))) + 2.0) * 2
out = combine(mesh_in, out, dec)

return out
Expand Down Expand Up @@ -532,7 +532,7 @@ def grid_adapter3D(
element_size=in_res,
)
mesh_in["material_id"] = gen_std_mat_id(mesh_in["elements"], in_mat)
dec = int(np.ceil(-np.log10(min(min(in_res), min(out_res))))+2.0)*2
dec = int(np.ceil(-np.log10(min(min(in_res), min(out_res)))) + 2.0) * 2
out = combine(mesh_in, out, dec)

return out
Expand Down
4 changes: 4 additions & 0 deletions ogs5py/ogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ def readvtk(self, pcs="ALL", output_dir=None):
if pcs="ALL", the output is a dictionary with the PCS-types as keys
"""
from ogs5py.reader import readvtk as read

if output_dir is not None:
root = output_dir
elif self.has_output_dir:
Expand Down Expand Up @@ -915,6 +916,7 @@ def readpvd(self, pcs="ALL", output_dir=None):
if pcs="ALL", the output is a dictionary with the PCS-types as keys
"""
from ogs5py.reader import readpvd as read

if output_dir is not None:
root = output_dir
elif self.has_output_dir:
Expand Down Expand Up @@ -963,6 +965,7 @@ def readtec_point(self, pcs="ALL", output_dir=None):
if pcs="ALL", the output is a dictionary with the PCS-types as keys
"""
from ogs5py.reader import readtec_point as read

if output_dir is not None:
root = output_dir
elif self.has_output_dir:
Expand Down Expand Up @@ -1018,6 +1021,7 @@ def readtec_polyline(self, pcs="ALL", trim=True, output_dir=None):
if pcs="ALL", the output is a dictionary with the PCS-types as keys
"""
from ogs5py.reader import readtec_polyline as read

if output_dir is not None:
root = output_dir
elif self.has_output_dir:
Expand Down

0 comments on commit 6845076

Please sign in to comment.