Skip to content

更新: 新增xml转tdml的测试版本 - #38

Open
Camber-ux wants to merge 2 commits into
openrsgis:mainfrom
Camber-ux:test-version
Open

更新: 新增xml转tdml的测试版本#38
Camber-ux wants to merge 2 commits into
openrsgis:mainfrom
Camber-ux:test-version

Conversation

@Camber-ux

Copy link
Copy Markdown

No description provided.

@photonbit photonbit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, I added comments for the changes of the emptiness check functions. They are no longer checking for empty values, so I think the functions should be removed or renamed.

Comment thread pytdml/io/tdml_writers.py Outdated
return True
else:
return False
return False

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function change no longer qualifies it to be named in the same way, as it is not checking for emptiness

Comment thread pytdml/io/tdml_writers.py Outdated


def remove_empty_values(d):
if isinstance(d, dict):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is no longer checking if there are empty values, the semantics have change. If I understand correctly, the current function will return "d" as it was originally, but traversing all the elements inside it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants