Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions scripts/metadata_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,19 @@ def read_new_metadata(filename, module_name, table_name, scheme_name = None, sub
metadata = collections.OrderedDict()
for new_metadata_header in new_metadata_headers:
for metadata_section in new_metadata_header.sections():
metadata_section_title = metadata_section.title.lower()
# Module or DDT tables
if not scheme_name:
# Module property tables
if not metadata_section.title == table_name:
if not metadata_section_title == table_name:
# Skip this table, since it is not requested right now
continue

# Distinguish between module argument tables and DDT argument tables
if metadata_section.title == module_name:
if metadata_section_title == module_name:
container = encode_container(module_name)
else:
container = encode_container(module_name, metadata_section.title)
container = encode_container(module_name, metadata_section_title)

# Add to dependencies
if new_metadata_header.dependencies_path:
Expand All @@ -143,7 +144,7 @@ def read_new_metadata(filename, module_name, table_name, scheme_name = None, sub
dependencies += new_metadata_header.dependencies
else:
# Scheme property tables
if not metadata_section.title == table_name:
if not metadata_section_title == table_name:
# Skip this table, since it is not requested right now
continue

Expand Down Expand Up @@ -284,6 +285,7 @@ def parse_variable_tables(filepath, filename):
lines = []
buffer = ''
for i in range(len(file_lines)):
file_lines[i] = file_lines[i].lower()
line = file_lines[i].rstrip('\n').strip()
# Skip empty lines
if line == '' or line == '&':
Expand Down Expand Up @@ -557,6 +559,7 @@ def parse_scheme_tables(filepath, filename):
original_line_numbers = []
buffer = ''
for i in range(len(file_lines)):
file_lines[i] = file_lines[i].lower()
line = file_lines[i].rstrip('\n').strip()
# Skip empty lines
if line == '' or line == '&':
Expand Down
8 changes: 4 additions & 4 deletions test_prebuild/test_chunked_data/data.F90
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module data

!! \section arg_table_data Argument Table
!! \htmlinclude data.html
!! \section arg_table_dATa Argument Table
!! \htmlinclude datA.Html
!!
use ccpp_types, only: ccpp_t

Expand All @@ -21,8 +21,8 @@ module data
integer, parameter, dimension(nchunks) :: chunk_end = (/6,12,18,21/)
integer, parameter :: ncols = sum(chunksize)

!! \section arg_table_chunked_data_type
!! \htmlinclude chunked_data_type.html
!! \section arg_table_cHuNkEd_dATa_TYPe
!! \htmlinclude CHuNKed_Data_tYpe.hTMl
!!
type chunked_data_type
integer, dimension(:), allocatable :: array_data
Expand Down