Change variable name to underscore lower case fmt
@@ -80,17 +80,17 @@ def write(
las.version["WRAP"] = HeaderItem("WRAP", "", "NO", "One line per depth step")
lines = []
- versionSectionToWrite = deepcopy(las.version)
+ version_section_to_write = deepcopy(las.version)
assert version in (1.2, 2, None)
if version is None:
version = las.version["VERS"].value
if version == 1.2:
- versionSectionToWrite.VERS = HeaderItem(
+ version_section_to_write.VERS = HeaderItem(
"VERS", "", 1.2, "CWLS LOG ASCII STANDARD - VERSION 1.2"
)
elif version == 2:
- versionSectionToWrite.VERS = HeaderItem(
+ version_section_to_write.VERS = HeaderItem(
"VERS", "", 2.0, "CWLS log ASCII Standard -VERSION 2.0"
)
@@ -125,8 +125,8 @@ def write(
logger.debug("LASFile.write Version section, Version: %s" % (version))
lines.append("~Version ".ljust(header_width, "-"))
order_func = get_section_order_function("Version", version)
- section_widths = get_section_widths("Version", versionSectionToWrite, version, order_func)
- for header_item in versionSectionToWrite.values():
+ section_widths = get_section_widths("Version", version_section_to_write, version, order_func)
+ for header_item in version_section_to_write.values():
mnemonic = header_item.original_mnemonic
# logger.debug('LASFile.write ' + str(header_item))
order = order_func(mnemonic)
@@ -235,7 +235,7 @@ def write(
lines = [depth_slice]
for line in lines:
- if versionSectionToWrite.VERS == 1.2 and len(line) > 255:
+ if version_section_to_write.VERS == 1.2 and len(line) > 255:
logger.warning(
"[v1.2] line #{} has {} chars (>256)".format(
line_counter + 1, len(line)
