Skip to content

Commit 6ee7163

Browse files
committed
Aesthetic changes
1 parent 5fcddbe commit 6ee7163

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pySDC/helpers/fieldsIO.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
import os
5050
import numpy as np
5151
from typing import Type, TypeVar
52+
import logging
5253

5354
T = TypeVar("T")
5455

@@ -78,8 +79,6 @@ class MPI:
7879
}
7980
)
8081
except AttributeError:
81-
import logging
82-
8382
logging.getLogger('FieldsIO').debug('Warning: Quadruple precision not available on this machine')
8483
try:
8584
DTYPES.update(
@@ -89,8 +88,6 @@ class MPI:
8988
}
9089
)
9190
except AttributeError:
92-
import logging
93-
9491
logging.getLogger('FieldsIO').debug('Warning: Single precision not available on this machine')
9592

9693
DTYPES_AVAIL = {val: key for key, val in DTYPES.items()}

0 commit comments

Comments
 (0)