Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: sources sinks converter (UNST-8528) #721
feat: sources sinks converter (UNST-8528) #721
Changes from all commits
3f33e92
2ad0ca8
3227ab6
3527c41
5d143b8
50e5475
546a58f
de01cb7
858c86e
0e2b075
6411cd2
4df1b16
b6ff6b1
0efb1d1
77a4f78
a3b335b
1a17cd2
ed71a0b
16e4ee1
50e9ef2
f5a7834
9af79d1
fbad133
9d516a8
f5af0fe
ed30f2c
8403ebb
6c80dbc
f99841e
8e88a9b
5fb2ce0
a41f591
714ef29
b2a9f28
fcac5af
a78c1f4
f18cbab
6cdc8e0
86142e7
a1ccf9c
b6f4e51
456a502
b667ff4
17753e7
cbb2d16
6d24267
92e453b
629a24c
1c15e87
1c41a77
04bf366
e3f9746
a523f58
0ada611
bcd5694
e23fa07
b70fd6f
64dc374
846342d
199241e
78eebc3
8ffb639
6539245
67fd3fa
215c05e
6c5590e
6dc8db7
f7f2536
ed20778
33db751
4162b0e
efa5fec
07a5cb8
0c0d2a6
6d19ab4
908fefa
69d18cc
f2b4c57
5322456
cd9389b
a01f8fd
0a17562
9ff2e91
4c5bfb2
13dead8
5587390
5211d96
1726a38
d0b183e
d68e75d
5db0ceb
99d47d4
8e5314f
f4246d2
b3c92b1
eef3351
de14bf0
d0ee415
656b112
1e3552a
31a0a99
7387036
c4e5892
540f4e4
06c3411
0ae3726
15553f1
a2280fe
3f7a75c
dad5451
2ac138a
1fd561a
20175ab
638a8cc
938ac05
7f30c43
8cd2665
9b33474
fcde9f1
c4f9645
f563c97
457473d
bec5e13
1d4b3c8
25bd8c5
56930f9
5092c75
4c02cd9
b366a14
7556303
75988fb
726f01b
8779cb7
6d6dad0
f17b36c
55ad838
ffa8a95
51e5fdb
b811686
fe27aee
297d919
16fa483
8394df1
11d654c
6be8c44
304cd39
33a467e
cf3a3a4
4cdcdd4
33e6cd2
3768ecb
3e8ed26
a6a99c9
c1a70ae
b50b823
3e477e1
4f8aeb5
5934485
8847cc0
0396cb4
3575aba
966f8d0
6b530a5
0c2b34e
545a532
d2bceaa
7c92028
ebbf589
f822a9b
f06fc1f
12663a7
314c8a1
6253b9b
2128eee
2e4ca9e
8ee1bf6
e29c1d9
845950f
17819da
edaad5f
5656560
348c8d9
7267c60
c9465d9
c296fa3
eea08a1
bfe81f6
de31910
f086597
3367e61
b1600f4
c372121
604af44
d246cd1
89b55a0
a074a44
861616e
ec978a7
d9ae51d
2c7e5f3
27cc78d
856fa6c
b2eda43
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this used for? You typically want to keep the individual PolyObjects separated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is used in the
SourceSinkConverter.convert
to to get the xcoordinatesThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also safeguard against
not have_z
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a property
has_z_value
which can be used outside the method where the user can know if the polyline has a z value if yes the get_zsource_sink then can be usedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now the
get_z_sources_sinks
will return a[None], [None]
if the polyline does not have a z value as theget_z_sources_sinks
just calls thepoint.z
and for a polyline that does not have a z value the z value is assigned to NoneThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added documentation (Note in the
PolyFile.get_zsources_sinks
, also an examples) and a testtests/dflowfm/poolyfole/test_polyline_models.py::TestGetZSourcesSinks.test_get_z_sources_sinks_no_z_values