From 9daef1426f4fec4f6030cedcaf53c6ed48593c3f Mon Sep 17 00:00:00 2001 From: Alif Be <11570927+alifbe@users.noreply.github.com> Date: Mon, 14 Oct 2024 21:33:06 +0000 Subject: [PATCH 1/2] Fix documentation indent issue --- src/subscript/fmu_copy_revision/fmu_copy_revision.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/subscript/fmu_copy_revision/fmu_copy_revision.py b/src/subscript/fmu_copy_revision/fmu_copy_revision.py index 806dc7ea5..0be0436d1 100755 --- a/src/subscript/fmu_copy_revision/fmu_copy_revision.py +++ b/src/subscript/fmu_copy_revision/fmu_copy_revision.py @@ -21,18 +21,20 @@ DESCRIPTION = """This is a simple interactive script for copying a FMU revision folder with features: + 1. Selective copy, i.e. avoid data that can be regenerated 2. Speed up copying by multithreading 3. Retain correct file dates and user permissions Usage: + fmu_copy_revision (for menu based input) - * or * + or fmu_copy_revision --source 21.0.0 --target some --profile 3 --threads 6 --cleanup - * or * + or fmu_copy_revision --source 21.0.0 (...other options are defaulted) """ From 1245d95fd2b00e8b494230dee35991335bc5b21c Mon Sep 17 00:00:00 2001 From: Alif Be <11570927+alifbe@users.noreply.github.com> Date: Mon, 14 Oct 2024 22:31:20 +0000 Subject: [PATCH 2/2] Fix mypy issue --- src/subscript/check_swatinit/check_swatinit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/subscript/check_swatinit/check_swatinit.py b/src/subscript/check_swatinit/check_swatinit.py index 5baf0e0aa..57cb2ef8a 100644 --- a/src/subscript/check_swatinit/check_swatinit.py +++ b/src/subscript/check_swatinit/check_swatinit.py @@ -2,7 +2,7 @@ import argparse import sys -from typing import Any, Dict, List +from typing import Any, Dict, List, Union import numpy as np import pandas as pd @@ -473,7 +473,7 @@ def _evaluate_pc( swats: List[float], scale_vert: List[float], swls: List[float], - swus: List[float], + swus: Union[None, List[float]], satfunc: pd.DataFrame, sat_name: str = "SW", pc_name: str = "PCOW",