chore(code): Format code
This commit is contained in:
parent
b0f7f49ebc
commit
72e11a67d7
2 changed files with 10 additions and 5 deletions
|
@ -54,11 +54,13 @@ def calculate_validities(
|
||||||
|
|
||||||
return vd
|
return vd
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import sys
|
import sys
|
||||||
import load_data
|
import load_data
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
|
|
||||||
if len(sys.argv) == 2:
|
if len(sys.argv) == 2:
|
||||||
df = load_data.from_yml(Path(sys.argv[1]))
|
df = load_data.from_yml(Path(sys.argv[1]))
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
import io
|
import io
|
||||||
from pathlib import Path
|
|
||||||
import sys
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
from pandas import DataFrame, read_csv
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import src.yml as yaml # for quarto document scripts
|
import src.yml as yaml # for quarto document scripts
|
||||||
except ModuleNotFoundError:
|
except ModuleNotFoundError:
|
||||||
import yml as yaml # for directly running the package
|
import yml as yaml # for directly running the package
|
||||||
from pandas import DataFrame, read_csv
|
|
||||||
|
|
||||||
DEFAULT_YAML_PATH = Path("02-data/processed")
|
DEFAULT_YAML_PATH = Path("02-data/processed")
|
||||||
|
|
||||||
|
@ -43,6 +45,7 @@ if __name__ == "__main__":
|
||||||
res = from_yml()
|
res = from_yml()
|
||||||
|
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
|
|
||||||
output = StringIO()
|
output = StringIO()
|
||||||
res.to_csv(output)
|
res.to_csv(output)
|
||||||
output.seek(0)
|
output.seek(0)
|
||||||
|
|
Loading…
Reference in a new issue