Skip to content

Commit

Permalink
Merge pull request #154 from entelecheia/1.10.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia authored Jul 26, 2023
2 parents 3e5f51b + c0549e4 commit 439c2c8
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 11 deletions.
2 changes: 1 addition & 1 deletion config/workflow/__test__.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defaults:
- /task@task1: __test__
- override /project: __test__

worflow_name: __test__
workflow_name: __test__
verbose: true
tasks:
- task1
8 changes: 1 addition & 7 deletions src/hyfi/conf/mode/__debug__.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# @package _global_
defaults:
- __init__
- __info__

debug_mode: true
verbose: true
ignore_warnings: false
logging_level: DEBUG
hydra:
verbose: false
job_logging:
root:
level: ${logging_level}
6 changes: 6 additions & 0 deletions src/hyfi/conf/mode/__hydra_debug__.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# @package _global_
defaults:
- __debug__

hydra:
verbose: true
6 changes: 6 additions & 0 deletions src/hyfi/conf/mode/__info__.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# @package _global_
defaults:
- __init__

verbose: true
logging_level: INFO
2 changes: 2 additions & 0 deletions src/hyfi/conf/pipe/dataset_load_from_disk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ defaults:
run: hyfi.pipe.datasets.load_dataset_from_disk
run_with:
dataset_path:
num_heads: 1
num_tails: 1
verbose: ${..verbose}
use_pipe_obj: false
2 changes: 2 additions & 0 deletions src/hyfi/conf/pipe/dataset_sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ run_with:
num_samples: 100
randomize: true
random_seed: 123
num_heads: 1
num_tails: 1
verbose: ${..verbose}
use_pipe_obj: true
return_pipe_obj: false
1 change: 1 addition & 0 deletions src/hyfi/conf/pipe/dataset_save_to_disk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ defaults:
run: hyfi.pipe.datasets.save_dataset_to_disk
run_with:
dataset_path:
verbose: false
2 changes: 1 addition & 1 deletion src/hyfi/conf/workflow/__init__.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defaults:
- /project: __init__
# - /task: __init__

worflow_name: __init__
workflow_name: __init__
verbose: false
tasks:
# - task
4 changes: 3 additions & 1 deletion src/hyfi/pipe/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ def save_dataset_to_disk(
Save a dataset.
"""
data.save_to_disk(str(dataset_path))
logger.info("Dataset saved to %s.", dataset_path)
if verbose:
logger.info("Dataset saved to %s.", dataset_path)
logger.info("Dataset features: %s", data.features)
logger.info("Number of samples: %s", len(data))

return data

Expand Down
2 changes: 1 addition & 1 deletion src/hyfi/pipeline/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def run_workflow(workflow: WorkflowConfig):
# Print the elapsed time.
if workflow.verbose:
logger.info(
" >> elapsed time for the worflow with %s tasks: %s",
" >> elapsed time for the workflow with %s tasks: %s",
len(workflow.tasks or []),
elapsed(),
)

0 comments on commit 439c2c8

Please sign in to comment.