Skip to content

Commit

Permalink
added sys argpas input for non console users and debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Filos1992 committed Jul 11, 2024
1 parent f992983 commit cbfa8fd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Ignore the data folder and all its contents
/data/
# Ignore all png files
/stac/
# Ignore file types
*.png
*.pdf
*.csv
*.json

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
8 changes: 8 additions & 0 deletions plots/01_heliostat_position.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python

import argparse
import sys
from pathlib import Path
from typing import Tuple, Union

Expand Down Expand Up @@ -236,6 +237,13 @@ def plot_heliostat_positions(self):


if __name__ == "__main__":
sys.argv = ["heliostat_position.py",
"--path_to_positions", "data/Heliostatpositionen_xyz.xlsx",
"--path_to_measurements", "data/calib_data.csv",
"--path_to_deflectometry", "data/deflec_availability.xlsx",
"--output_path", "plots/saved_plots",
"--file_name", "01_heliostat_positions"]

parser = argparse.ArgumentParser()

parser.add_argument(
Expand Down
4 changes: 4 additions & 0 deletions plots/03_create_dataset_hour_split.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python

import argparse
import sys
from pathlib import Path
from typing import List, Union

Expand Down Expand Up @@ -191,6 +192,9 @@ def plot_hour_split(self):


if __name__ == "__main__":
sys.argv = ["create_dataset_hour_split.py",
"--path_to_measurements", "data/calib_data.csv"
]
parser = argparse.ArgumentParser()

parser.add_argument(
Expand Down

0 comments on commit cbfa8fd

Please sign in to comment.