-
Notifications
You must be signed in to change notification settings - Fork 100
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
File name conversion tool #438
Merged
wrongkindofdoctor
merged 11 commits into
NOAA-GFDL:main
from
wrongkindofdoctor:add_developer_mode
Dec 9, 2022
Merged
File name conversion tool #438
wrongkindofdoctor
merged 11 commits into
NOAA-GFDL:main
from
wrongkindofdoctor:add_developer_mode
Dec 9, 2022
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
…tandard and configuration template file add the click package to the base conda environment file
…ctory in tools finalized rename_input_files.py modified config_template parameters and added comments
wrongkindofdoctor
added
feature-request
New feature or request
tool
Scripts or features that assist with data or code management that are not part of the framework src
labels
Dec 9, 2022
wrongkindofdoctor
requested review from
jkrasting and
aradhakrishnanGFDL
as code owners
December 9, 2022 15:33
comment out debugging print statements
# add new_name attribute to the original file name | ||
# with the format <CASENAME>.<frequency>.<variable name>.nc | ||
def append_new_filenames(file_list=list, casename=str): | ||
for f in file_list: |
Check failure
Code scanning / CodeQL
Non-iterable used in for loop
This for-loop may attempt to iterate over a [non-iterable instance](1) of class [type](2).
except yaml.YAMLError as exc: | ||
print(exc) | ||
|
||
casename = case_info['CASENAME'] |
Check failure
Code scanning / CodeQL
Potentially uninitialized local variable
Local variable 'case_info' may be used before it is initialized.
add lines to create documentation for tools scripts on-the-fly from existing .rst files
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature-request
New feature or request
tool
Scripts or features that assist with data or code management that are not part of the framework src
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.
Description
Add a helper tool rename_input_files.py to convert file names and paths to symlinks that adhere to the LocalFile format. The script and config file template are located in a subdirectory in a new tools folder for scripts to aid in testing and data handling that are separate from the main framework code.
Associated issue #436
How Has This Been Tested?
Tested on centos8 system with Python 3.10
Checklist:
conda_env_setup.sh