Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SimStadt
simstadtpy
Commits
0cc835f3
Commit
0cc835f3
authored
Mar 31, 2026
by
Eric Duminil
Browse files
Doc
parent
1af417ea
Changes
1
Show whitespace changes
Inline
Side-by-side
src/simstadt/results/base.py
View file @
0cc835f3
...
@@ -16,7 +16,9 @@ logger = logging.getLogger(__name__)
...
@@ -16,7 +16,9 @@ logger = logging.getLogger(__name__)
def
detect_decimal
(
csv_path
:
Path
,
line_number
:
int
,
check
:
str
=
""
)
->
str
:
def
detect_decimal
(
csv_path
:
Path
,
line_number
:
int
,
check
:
str
=
""
)
->
str
:
"""Detect whether '.' or ',' is used as decimal separator on the given line."""
"""Detect whether '.' or ',' is used as decimal separator on the given line. (0-index)
Check if substring check is included in line at line_number
"""
with
open
(
csv_path
,
encoding
=
"utf-8"
)
as
csv
:
with
open
(
csv_path
,
encoding
=
"utf-8"
)
as
csv
:
for
_
in
range
(
line_number
):
for
_
in
range
(
line_number
):
next
(
csv
)
next
(
csv
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment