forked from payu-org/payu
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove python3 incompatibility #2
Open
HoWol76
wants to merge
43
commits into
aidanheerdegen:master
Choose a base branch
from
HoWol76:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is primarily a formatting change to the Manifest code support. Specific non-style changes mentioned below: - `hash` as a variable is renamed in many cases, to avoid conflict with the `hash` builtin. - Strings are updated to support 2.6 format syntax - The git support functions are moved out of fsops modules (intended for filesystem operations) and moved into the manifest module - Additional variables were introduced in some places to reduce the number of commands per line.
The three git subcommand functions have been removed from the manifest module, since they were not called anywhere.
Added scheduler/pbs.py for PBS specific commands. Dump environment and job information separately. Follow the same pattern as stdout/stderr and move to output on completion, or error_logs on failure. pep8 cleanup
Added git commit hash to job yaml dump file.
PEP8 indentation cleanup resulting from above change.
Enforced correct indentation on continuation lines Removed dump_yaml function, inlined code Standardised handling of output files (stderr, stdout and yaml dumps) Cleaned up imports in manifest.py
Dump some job information stats
adding to list self.config_files. Addresses https://github.com/marshallward/payu/issues/148.
Parse MITgcm config files to check they are correct namelists
stays deleted. Previous behaviour recreated the archive directory to store logs. Fixes https://github.com/marshallward/payu/issues/136
Fixes issue with hard sweep not removing archive correctly
Added control path to job yaml dump
…#158) * Add option to collate restart files as well as output files This will collate the previous restart, to avoid issues with half collated restarts if collate doesn't complete before next run starts. Also avoids any possible speed hit when using collated restarts for the next run.
Now use git commit hash to uniquely identify logs if PBS id not available, e.g. using payu-run.
…rt directories. (payu-org#160) * Added support for ability of cice5 to define separate input and restart directories. * Added code to check consistency of paths between namelist variables in cice. Changed some of the logic in cice set_model_pathnames as a result, so consistency checks are done, whether or not the input and restart directories are separate. * Check the restart pointer path is consistent but only warn, as this can be the case in older models * Initialised runlog manifest when create_manifest is called, otherwise subruns (which do not init runlog) were doing multiple git add steps for each config file. * Use os.path.curdir * Delete restart pointer file when using split paths in cice * Fixed logic for removing INPUT directory in case of split paths
Primarily a whitespace cleanup, two specific changes below. - The Win32 path with forward backslash was converted to a raw string - Core dump support was added to config.yaml to enable Fortran core dumps `coredump: True` should work. May organise this better someday, take this as a temporary thing.
Added support for the older Intel compilers (ca. v15), and confirmed that it is working as intended.
NRUN and force ASTART to be last restart dump. This emulates ACCESS-ESM run script
Changed to self.copy_restarts when populating manifests. Walk input paths to properly support sub-directories by adding all files explicitly.
cice: Made copy_inputs default False cice: Added logic for init_path (where restarts are read from) cice: Added checks for consistent paths. cice: commented out get_prior_restart_files as it was returning only one iced file, ignoring other restarts. Added in logic later to only pick up latest restart when it is required. cice: Moved some of the restart cleaning logic from cice5 to cice so iced restarts don't accumulate. cice: Cleaned more paths of symlinks in archive
manifest: renamed make_links to check_manifests, as it no longer creates links.
In particular, takes care of linking the o2i.nc into cice work/RESTART access: override set_local_pathnames and pass it. Model does not have work path so redundant, and errors otherwise.
remove redundant path information.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.