Skip to content

Commit

Permalink
Add neologger
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinRovang committed Jul 31, 2023
1 parent 0a2b14a commit 4e0a69e
Show file tree
Hide file tree
Showing 6 changed files with 1,905 additions and 2,030 deletions.
5 changes: 2 additions & 3 deletions central_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
from typing import Dict, Any
import numpy as np
from beartype.typing import Dict, Optional, Any, NoReturn
from loguru import logger
import sys
from neolibrary.monitoring.logger import NeoLogger

from utils.helpers import timer
from config import config
from neotemplate.base_central_processing import CPNeoTemplate


logger.add(sys.stdout, format=" level={level} | {time:YYYY-MM-DD at HH:mm:ss} | {message}", level="INFO")
logger = NeoLogger(__name__).get_logger()

class CentralProcessing(CPNeoTemplate):
"""
Expand Down
4 changes: 3 additions & 1 deletion data_download.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
from pymedquery import pymq
import os
from loguru import logger
from tqdm import tqdm
import h5py
from neolibrary.monitoring.logger import NeoLogger
import nibabel as nib
from typing import NoReturn

import config.config as cfg

logger = NeoLogger(__name__).get_logger()


class MedqueryDataDownloader:
"""
Expand Down
5 changes: 3 additions & 2 deletions neotemplate/base_central_processing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import torch
import torch.nn as nn
from loguru import logger
from neolibrary.monitoring.logger import NeoLogger
from beartype.typing import Dict, Optional, Any, NoReturn
import numpy as np
import yaml
Expand All @@ -10,7 +10,8 @@

from config import config as cfg

logger.add(sys.stdout, format=" level={level} | {time:YYYY-MM-DD at HH:mm:ss} | {message}", level="INFO")

logger = NeoLogger(__name__).get_logger()


class CPNeoTemplate(nn.Module):
Expand Down
Loading

0 comments on commit 4e0a69e

Please sign in to comment.