-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
|
||
* text=auto eol=lf | ||
*.py text | ||
*.svg text | ||
*.th2 text | ||
|
||
*.svx text | ||
*.3d binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
for enc in latin1 utf8; do | ||
for v in 3 4 5 6 7 8; do | ||
out="3d/umlaut-$enc-v$v.3d" | ||
if [[ ! -f "$out" ]]; then | ||
cavern -v $v -o "$out" umlaut-$enc.svx | ||
fi | ||
done | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*title "H�hle mit Umlaut" | ||
|
||
*data normal from to length clino compass | ||
1 2 1.2 +0 000 | ||
2 3 3.4 +0 090 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*title "Höhle mit Umlaut" | ||
|
||
*data normal from to length clino compass | ||
1 2 1.2 +0 000 | ||
2 3 3.4 +0 090 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import survex as m | ||
|
||
from pathlib import Path | ||
|
||
TESTS_DATA = Path(__file__).resolve().parent / "data" | ||
|
||
|
||
def test_Survex3D_umlaut(): | ||
for path3d in (TESTS_DATA / "3d").glob("umlaut-*.3d"): | ||
s = m.Survex3D(path3d) | ||
assert s.length() == 460.0 | ||
assert list(s.sortedlabels()) == ["1", "2", "3"] | ||
assert s.title == "Höhle mit Umlaut" |