From 1ed5260e7fe69f5cf7302eb785c7b30016185628 Mon Sep 17 00:00:00 2001 From: Karko93 Date: Fri, 22 Dec 2023 15:44:10 +0100 Subject: [PATCH] Revert --- src/moveroplot/utils/parse_plot_synop_ch.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/moveroplot/utils/parse_plot_synop_ch.py b/src/moveroplot/utils/parse_plot_synop_ch.py index 5fef9e7..ea99ed6 100644 --- a/src/moveroplot/utils/parse_plot_synop_ch.py +++ b/src/moveroplot/utils/parse_plot_synop_ch.py @@ -15,7 +15,6 @@ # pylint: enable=pointless-string-statement # pylint: disable=using-constant-test # Standard library -import importlib.resources as pkg_resources from pathlib import Path from pprint import pprint @@ -25,11 +24,9 @@ verbose = False path = Path(__file__).with_name("plot_synop_ch") -# open plot_synop_ch file -# with open(path, "r") as f: -# lines = [line.strip() for line in f.readlines()] # pylint: disable=unspecified-encoding -with pkg_resources.open_text("moveroplot", "plot_synop_ch") as f: +# open plot_synop_ch file +with open(path, "r") as f: lines = [line.strip() for line in f.readlines()] # VERIFICATION SCORES; DATAFRAMES FOR SCORE RANGES AND COLOUR TABLE