How to use the f90nml.namelist 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 payu-org / payu / test / models / test_mitgcm.py View on Github external
def make_config_files():
    """
    Create files required for test model
    """

    f90nml.namelist.Namelist(data).write(ctrldir/'data', force=True)
github marshallward / f90nml / tests / test_f90nml.py View on Github external
def test_pop_key(self):
        test_nml = f90nml.read('empty.nml')
        test_nml.pop('empty_nml')
        self.assertEqual(test_nml, f90nml.namelist.Namelist())