Skip to content

Commit

Permalink
remove unnessary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchengtkc committed Dec 12, 2024
1 parent afd918b commit a8af547
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions warmth/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def _dump(self, filepath: Path):


def load_node(filepath: Path) -> single_node:
logger.info(f"Loading node from {filepath}")
logger.debug(f"Loading node from {filepath}")
data = compressed_pickle_open(filepath)
return data

Expand Down Expand Up @@ -714,7 +714,7 @@ def extract_nodes(
]
logger.info('Extracting %s sedimentary packages with %s horizons', len(
futures), len(futures) + 1)
logger.info('Threads:%s', len(poolx._threads))
logger.debug('Threads:%s', len(poolx._threads))

# When each job finishes
for future in concurrent.futures.as_completed(futures):
Expand Down
8 changes: 4 additions & 4 deletions warmth/mesh_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,11 +636,11 @@ def buildMesh(self,tti:int):
"""
self.tti = tti
self.buildVertices(time_index=tti)
logger.info("Built vertices")
logger.debug("Built vertices")
self.constructMesh()
logger.info("Built mesh")
logger.debug("Built mesh")
self.updateMesh(tti)
logger.info("Updated vertices")
logger.debug(f"Updated vertices for time {tti}")


def updateMesh(self,tti:int, optimized=False):
Expand Down Expand Up @@ -750,7 +750,7 @@ def constructMesh(self):
)

def mpi_print(s):
logger.info(f"Rank {comm.rank}: {s}")
logger.debug(f"Rank {comm.rank}: {s}")

fn = self.modelName+"_mesh.xdmf"
if comm.rank==0:
Expand Down
2 changes: 1 addition & 1 deletion warmth/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _load_nodes(self):
return

def _load_1D_results(self):
logger.info(f"Loading model from {self.parameters.out_path}")
logger.debug(f"Loading model from {self.parameters.out_path}")
self._load_nodes()
return

Expand Down
2 changes: 1 addition & 1 deletion warmth/resqpy_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ def write_hexa_grid_with_timeseries(filename, nodes_series, cells, modelTitle =
NOTE: writing properties that are defines per-node (have 'nodes' as indexable element) requires a patched version of resqpy!
"""
logger.info("Creating RESQML model")
logger.debug("Creating RESQML model")
nodes_time_0 = nodes_series[-1,:,:] # present-day at last index
node_count = nodes_time_0.shape[0]
faces_per_cell = []
Expand Down
2 changes: 1 addition & 1 deletion warmth/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def compressed_pickle_open(path: Path):


def load_pickle(filepath: Path):
logger.info(f"Loading data from {filepath}")
logger.debug(f"Loading data from {filepath}")
with open(filepath, "rb") as f:
data = pickle.load(f)
return data
Expand Down

0 comments on commit a8af547

Please sign in to comment.