Skip to content

Commit

Permalink
test: print .err and .log
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdinkel committed Dec 19, 2024
1 parent a5b78c0 commit 3631937
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,23 @@ def test_write_random_material_to_dat(
# Actual analysis
run_iterator(iterator, global_settings=global_settings)

from queens.utils.config_directories import experiment_directory

experiment_dir = experiment_directory(global_settings.experiment_name)
job_dir = experiment_dir / "0"
import logging

_logger = logging.getLogger(__name__)
_logger.info(list(job_dir.iterdir()))
output_dir = job_dir / "output"
_logger.info(list(output_dir.iterdir()))
print(list(job_dir.iterdir()))
print(list(output_dir.iterdir()))
from queens.utils.io_utils import read_file

print(read_file(output_dir / "test_write_random_material_to_dat_0.err"))
print(read_file(output_dir / "test_write_random_material_to_dat_0.log"))

# Load results
results = load_result(global_settings.result_file(".pickle"))

Expand Down

0 comments on commit 3631937

Please sign in to comment.