From 673cf88c13703877b0847448b5945bafc87d57bb Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 18 Jan 2024 11:07:22 +0100 Subject: [PATCH] fix(code): Fix yaml library overwriting The yaml loader just being called yaml overwrote loading the external yaml library in the file itself. Simple fix by renaming module to yml.py. --- src/load_data.py | 4 ++-- src/{yaml.py => yml.py} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename src/{yaml.py => yml.py} (100%) diff --git a/src/load_data.py b/src/load_data.py index 8fddf72..ece9f88 100644 --- a/src/load_data.py +++ b/src/load_data.py @@ -2,9 +2,9 @@ import io from pathlib import Path import sys try: - import src.yaml as yaml # for quarto document scripts + import src.yml as yaml # for quarto document scripts except ModuleNotFoundError: - import yaml as yaml # for directly running the package + import yml as yaml # for directly running the package from pandas import DataFrame, read_csv DEFAULT_YAML_PATH = Path("02-data/processed") diff --git a/src/yaml.py b/src/yml.py similarity index 100% rename from src/yaml.py rename to src/yml.py