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
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
import load_data
|
||||
from pathlib import Path
|
||||
from io import StringIO
|
||||
|
||||
if len(sys.argv) == 2:
|
||||
df = load_data.from_yml(Path(sys.argv[1]))
|
||||
else:
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
import io
|
||||
from pathlib import Path
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from pandas import DataFrame, read_csv
|
||||
|
||||
try:
|
||||
import src.yml as yaml # for quarto document scripts
|
||||
except ModuleNotFoundError:
|
||||
import yml as yaml # for directly running the package
|
||||
from pandas import DataFrame, read_csv
|
||||
|
||||
DEFAULT_YAML_PATH = Path("02-data/processed")
|
||||
|
||||
|
@ -43,6 +45,7 @@ if __name__ == "__main__":
|
|||
res = from_yml()
|
||||
|
||||
from io import StringIO
|
||||
|
||||
output = StringIO()
|
||||
res.to_csv(output)
|
||||
output.seek(0)
|
||||
|
|
Loading…
Reference in a new issue