Skip to content

Commit

Permalink
Merge branch 'release' into fix/force_overwrite_in_file_movements
Browse files Browse the repository at this point in the history
  • Loading branch information
mandresm committed Feb 6, 2025
2 parents 43b333b + 97f9b79 commit aa32812
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 18 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 6.46.0
current_version = 6.46.1
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,6 @@
test_suite="tests",
tests_require=test_requirements,
url="https://github.com/esm-tools/esm_tools",
version="6.46.0",
version="6.46.1",
zip_safe=False,
)
2 changes: 1 addition & 1 deletion src/esm_archiving/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

__author__ = """Paul Gierz"""
__email__ = "[email protected]"
__version__ = "6.46.0"
__version__ = "6.46.1"

from .esm_archiving import (archive_mistral, check_tar_lists,
delete_original_data, determine_datestamp_location,
Expand Down
2 changes: 1 addition & 1 deletion src/esm_calendar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

__author__ = """Dirk Barbi"""
__email__ = "[email protected]"
__version__ = "6.46.0"
__version__ = "6.46.1"

from .esm_calendar import *
2 changes: 1 addition & 1 deletion src/esm_cleanup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = """Dirk Barbi"""
__email__ = "[email protected]"
__version__ = "6.46.0"
__version__ = "6.46.1"
2 changes: 1 addition & 1 deletion src/esm_database/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = """Dirk Barbi"""
__email__ = "[email protected]"
__version__ = "6.46.0"
__version__ = "6.46.1"
2 changes: 1 addition & 1 deletion src/esm_environment/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

__author__ = """Dirk Barbi"""
__email__ = "[email protected]"
__version__ = "6.46.0"
__version__ = "6.46.1"

from .esm_environment import *
2 changes: 1 addition & 1 deletion src/esm_master/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__author__ = """Dirk Barbi"""
__email__ = "[email protected]"
__version__ = "6.46.0"
__version__ = "6.46.1"


from . import database
2 changes: 1 addition & 1 deletion src/esm_motd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

__author__ = """Dirk Barbi"""
__email__ = "[email protected]"
__version__ = "6.46.0"
__version__ = "6.46.1"

from .esm_motd import *
2 changes: 1 addition & 1 deletion src/esm_parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__author__ = """Dirk Barbi"""
__email__ = "[email protected]"
__version__ = "6.46.0"
__version__ = "6.46.1"


from .dict_to_yaml import *
Expand Down
2 changes: 1 addition & 1 deletion src/esm_plugin_manager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

__author__ = """Dirk Barbi, Paul Gierz, Sebastian Wahl"""
__email__ = "[email protected]"
__version__ = "6.46.0"
__version__ = "6.46.1"

from .esm_plugin_manager import *
2 changes: 1 addition & 1 deletion src/esm_profile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

__author__ = """Dirk Barbi"""
__email__ = "[email protected]"
__version__ = "6.46.0"
__version__ = "6.46.1"

from .esm_profile import *
2 changes: 1 addition & 1 deletion src/esm_runscripts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__author__ = """Dirk Barbi"""
__email__ = "[email protected]"
__version__ = "6.46.0"
__version__ = "6.46.1"

from .batch_system import *
from .chunky_parts import *
Expand Down
11 changes: 9 additions & 2 deletions src/esm_runscripts/oasis.py
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,15 @@ def prepare_restarts(self, restart_file, all_fields, models, config):
# before (i.e. when using LOCTRANS)
if os.path.isfile(restart_file):
logger.debug(f"{restart_file} already exits, overwriting")
logger.info("cdo -O merge " + filelist + " " + restart_file)
os.system("cdo -O merge " + filelist + " " + restart_file) # + enddate)

cdo_merge_command = f"cdo -O -f nc4c merge {filelist} {restart_file}" # {enddate}"
logger.info(cdo_merge_command)
exit_code = os.system(cdo_merge_command)
if exit_code != 0:
cdo_merge_command = f"cdo -O merge {filelist} {restart_file}" # {enddate}"
logger.warning("nc4c merge failed, trying without it...")
logger.info(cdo_merge_command)
os.system(cdo_merge_command)
rmlist = glob.glob("notimestep*")
rmlist.append("onlyonetimestep.nc")
for rmfile in rmlist:
Expand Down
2 changes: 1 addition & 1 deletion src/esm_tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

__author__ = """Miguel Andres-Martinez"""
__email__ = "[email protected]"
__version__ = "6.46.0"
__version__ = "6.46.1"

from .initialization import *
from .read_shipped_data import *
Expand Down
2 changes: 1 addition & 1 deletion src/esm_tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

__author__ = """Dirk Barbi, Paul Gierz"""
__email__ = "[email protected]"
__version__ = "6.46.0"
__version__ = "6.46.1"

import functools
import inspect
Expand Down
2 changes: 1 addition & 1 deletion src/esm_utilities/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

__author__ = """Paul Gierz"""
__email__ = "[email protected]"
__version__ = "6.46.0"
__version__ = "6.46.1"

from .utils import *

0 comments on commit aa32812

Please sign in to comment.