How to use the f90nml.__version__ function in f90nml

To help you get started, we’ve selected a few f90nml examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github marshallward / f90nml / docs / source / conf.py View on Github external
# Path to extensions
sys.path.insert(0, os.path.dirname(os.path.abspath(os.pardir)))

# Sphinx setup
#needs_sphinx = '1.0'
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage']
templates_path = ['_templates']
source_suffix = '.rst'
#source_encoding = 'utf-8-sig'
master_doc = 'index'

# General information about the project.
project = f90nml.__name__
version = f90nml.__version__
release = f90nml.__version__
#copyright = "Copyright 2014-2015 Marshall Ward, see AUTHORS for details."

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'

# Member order
autodoc_member_order = 'groupwise'

# List of patterns, relative to source directory, that match files and
github marshallward / f90nml / docs / source / conf.py View on Github external
import f90nml

# Path to extensions
sys.path.insert(0, os.path.dirname(os.path.abspath(os.pardir)))

# Sphinx setup
#needs_sphinx = '1.0'
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage']
templates_path = ['_templates']
source_suffix = '.rst'
#source_encoding = 'utf-8-sig'
master_doc = 'index'

# General information about the project.
project = f90nml.__name__
version = f90nml.__version__
release = f90nml.__version__
#copyright = "Copyright 2014-2015 Marshall Ward, see AUTHORS for details."

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'

# Member order
autodoc_member_order = 'groupwise'
github marshallward / f90nml / f90nml / cli.py View on Github external
def parse():
    """Parse the command line input arguments."""
    parser = argparse.ArgumentParser()

    parser.add_argument('--version', action='version',
                        version='f90nml {0}'.format(f90nml.__version__))

    parser.add_argument('--group', '-g', action='store',
                        help="specify namelist group to modify. "
                        "When absent, the first group is used")
    parser.add_argument('--variable', '-v', action='append',
                        help="specify the namelist variable to add or modify, "
                        "followed by the new value. Expressions are of the "
                        "form `VARIABLE=VALUE`")
    parser.add_argument('--patch', '-p', action='store_true',
                        help="modify the existing namelist as a patch")
    parser.add_argument('--format', '-f', action='store',
                        help="specify the output format (json, yaml, or nml)")

    parser.add_argument('input', nargs='?')
    parser.add_argument('output', nargs='?')