Skip to content

Conversation

flacombe
Copy link
Contributor

@flacombe flacombe commented Sep 4, 2025

I propose the following improvements of classes documentation and add details for class 8

@flacombe
Copy link
Contributor Author

flacombe commented Sep 4, 2025

I don't understand the tests results:

    def dump_class(self, classs):
        for id_ in classs:
            data = classs[id_]
            self.error_file.classs(
                id = id_,
>               item = data['item'],
                level = data['level'],
                tags = data.get('tags'),
                title = data.get('title'),
                detail = data.get('detail'),
                fix = data.get('fix'),
                trap = data.get('trap'),
                example = data.get('example'),
                source = data.get('source'),
                resource = data.get('resource'),
            )
E           TypeError: tuple indices must be integers or slices, not str

It's in Analyser_osmosis.py without change

Comment on lines +745 to +748
'''Suggested values may not be correct according to your knowledge, aerial imagery or survey.
In such situations, power lines should be modified to better reflect how the power grid looks there.
When doing so, you may wait for Osmose to update the suggestion or directly add the appropriate `line_management` value on the node.
If you think power grid is right in OpenStreetMap, then mark this suggestion as false positive.'''))
Copy link
Contributor

Choose a reason for hiding this comment

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

That generic text, not specif to this case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's not generic to update ways to expect effect on a node I guess

Copy link
Collaborator

@Famlam Famlam left a comment

Choose a reason for hiding this comment

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

Some English suggestions

trap = T_(
'''It's possible that disused power features could be disconnected from the network.
In which case make use of the `disused:` [lifecycle prefix](https://wiki.openstreetmap.org/wiki/Lifecycle_prefix).'''))
'''It's possible that being built or disused power features could be disconnected from the live network.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggestion:

It is possible that power features under construction, or disused power features [...]

'''It's possible that disused power features could be disconnected from the network.
In which case make use of the `disused:` [lifecycle prefix](https://wiki.openstreetmap.org/wiki/Lifecycle_prefix).'''))
'''It's possible that being built or disused power features could be disconnected from the live network.
In which case make use of the `construction:` or `disused:` [lifecycle prefixes](https://wiki.openstreetmap.org/wiki/Lifecycle_prefix).'''))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggestion:

In this case the construction: or disused: lifecycle prefixes should be used.

'''The line ends in a vacuum, and should be connected to another line or a substation (`power=substation`),
a transformer (`power=transformer`), a generator (`power=generator`),
marked as transitioning into ground (`line_management=transition + location:transition=yes`)
or explicitely terminates (`line_management=termination`).'''),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggestion:

Terminated

trap = T_(
'''It's possible that disused power features could be disconnected from the network.
In which case make use of the `disused:` [lifecycle prefix](https://wiki.openstreetmap.org/wiki/Lifecycle_prefix).'''))
'''It's possible that being built or disused power features could be disconnected from the live network.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as above

'''The line ends in a vacuum, and should be connected to another line or a substation (`power=substation`),
a transformer (`power=transformer`), a generator (`power=generator`),
marked as transitioning into ground (`line_management=transition + location:transition=yes`)
or explicitely terminates (`line_management=termination`).'''),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as above

detail = T_(
'''A line terminates near of a substation with inconsistent voltages between them.'''),
fix = T_(
'''Continue the line towards its actual endpoint, check voltages on line and on substation and adjust what is required to better reflect what is seen on ground.''')),
Copy link
Collaborator

Choose a reason for hiding this comment

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

[...] on the line and the substation and adjust what is necessary to reflect what is seen on the ground.


title = T_('Power support line management suggestion'),
detail = T_(
'''[line_management](https://wiki.openstreetmap.org/wiki/Key:line_management) documents particular topologies occuring on power lines nodes. Mind looking at values documentation.
Copy link
Collaborator

Choose a reason for hiding this comment

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

The last sentence seems incorrect to me, do you mean " Have a look at the documented values"?

title = T_('Power support line management suggestion'),
detail = T_(
'''[line_management](https://wiki.openstreetmap.org/wiki/Key:line_management) documents particular topologies occuring on power lines nodes. Mind looking at values documentation.
Suggestions are computed by looking at existing OpenStreetMap power lines and only supports some combinations.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Support

detail = T_(
'''[line_management](https://wiki.openstreetmap.org/wiki/Key:line_management) documents particular topologies occuring on power lines nodes. Mind looking at values documentation.
Suggestions are computed by looking at existing OpenStreetMap power lines and only supports some combinations.
It's an encouragement to check and confirm the structure of the power grid on most relevant towers, particularly when proposed `line_management` differs from existing value.
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's encouraged

'''[line_management](https://wiki.openstreetmap.org/wiki/Key:line_management) documents particular topologies occuring on power lines nodes. Mind looking at values documentation.
Suggestions are computed by looking at existing OpenStreetMap power lines and only supports some combinations.
It's an encouragement to check and confirm the structure of the power grid on most relevant towers, particularly when proposed `line_management` differs from existing value.
Proposed values are to be adopted when conform to ground according to your knowledge, aerial imagery or survey.'''),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure what this means?
Unless it's a generic "tagging should confirm to ground truth"-statement (in which case it's unnecessary)

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.

3 participants