Skip to content

Commit

Permalink
update path
Browse files Browse the repository at this point in the history
  • Loading branch information
bagustris committed Oct 11, 2024
1 parent d922dfd commit 0a243e4
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion nkululeko/augment.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ def main():
config_file = args.config if args.config is not None else "exp.ini"
doit(config_file)


if __name__ == "__main__":
main()

2 changes: 1 addition & 1 deletion nkululeko/explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ def main():


if __name__ == "__main__":
main()
main()
4 changes: 2 additions & 2 deletions nkululeko/nkululeko.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import numpy as np


import nkululeko.experiment as exp
from nkululeko.constants import VERSION
from nkululeko.utils.util import Util
Expand Down Expand Up @@ -61,7 +60,7 @@ def doit(config_file):
def main():
cwd = Path(__file__).parent.absolute()
parser = argparse.ArgumentParser(description="Call the nkululeko framework.")
parser.add_argument('--version', action='version', version=f'Nkululeko {VERSION}')
parser.add_argument("--version", action="version", version=f"Nkululeko {VERSION}")
parser.add_argument("--config", default="exp.ini", help="The base configuration")
args = parser.parse_args()
if args.config is not None:
Expand All @@ -70,5 +69,6 @@ def main():
config_file = cwd / "exp.ini"
doit(config_file)


if __name__ == "__main__":
main() # use this if you want to state the config file path on command line
5 changes: 2 additions & 3 deletions nkululeko/resample.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from nkululeko.utils.util import Util


def main(src_dir):
def main():
parser = argparse.ArgumentParser(
description="Call the nkululeko RESAMPLE framework."
)
Expand Down Expand Up @@ -140,5 +140,4 @@ def main(src_dir):


if __name__ == "__main__":
cwd = os.path.dirname(os.path.abspath(__file__))
main(cwd)
main()
2 changes: 1 addition & 1 deletion nkululeko/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,4 @@ def segment_dataframe(df):


if __name__ == "__main__":
main() # use this if you want to state the config file path on command line
main() # use this if you want to state the config file path on command line
2 changes: 1 addition & 1 deletion tests/exp_androids_resample.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ epochs = 1
save = True
[DATA]
databases = ['data']
data = ./data/androids_test/androids.csv
data = ./data/androids/androids.csv
data.type = csv
data.absolute_path = False
data.split_strategy = random
Expand Down

0 comments on commit 0a243e4

Please sign in to comment.