cratepy.ioput.readprocedures.readtypeAkeyword

readtypeAkeyword(file, file_path, keyword, max_val)[source]

Read keyword of specification type A.

The keyword specification of type A is associated with a positive integer-valued keyword and has the following input data file syntax:

< keyword > < int >

Parameters:
  • file (file) – Data file.

  • file_path (str) – Data file path.

  • keyword (str) – Keyword.

  • max_val (int) – Maximum value of keyword positive integer value.

Returns:

keyword_value – Keyword value.

Return type:

int