Skip to content

Commit

Permalink
removed the seed function from demodata
Browse files Browse the repository at this point in the history
  • Loading branch information
anj20 committed Mar 3, 2025
1 parent d81934e commit 6525ac5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions mslib/mswms/demodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1235,8 +1235,8 @@ def main():
"""
parser = argparse.ArgumentParser()
parser.add_argument("-v", "--version", help="show version", action="store_true", default=False)
parser.add_argument("-s", "--seed", help="creates demodata for the mswms server",
action="store_true", default=False)
# parser.add_argument("-s", "--seed", help="creates demodata for the mswms server",
# action="store_true", default=False)
args = parser.parse_args()
if args.version:
print("***********************************************************************")
Expand All @@ -1245,16 +1245,16 @@ def main():
print("Documentation: http://mss.rtfd.io")
print("Version:", __version__)
sys.exit()
if args.seed:
root_fs = fs.open_fs("~/")
if not root_fs.exists("mss/testdata"):
root_fs.makedirs("mss/testdata")

examples = DataFiles(data_fs=fs.open_fs("~/mss/testdata"),
server_config_fs=fs.open_fs("~/mss"))
examples.create_server_config(detailed_information=True)
examples.create_data()
print("\nTo use this setup you need the mswms_settings.py in your python path e.g. \nexport PYTHONPATH=~/mss")
# if args.seed:
# root_fs = fs.open_fs("~/")
# if not root_fs.exists("mss/testdata"):
# root_fs.makedirs("mss/testdata")

# examples = DataFiles(data_fs=fs.open_fs("~/mss/testdata"),
# server_config_fs=fs.open_fs("~/mss"))
# examples.create_server_config(detailed_information=True)
# examples.create_data()
# print("\nTo use this setup you need the mswms_settings.py in your python path e.g. \nexport PYTHONPATH=~/mss")


if __name__ == '__main__':
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"mss = mslib.msui.mss:main",
"mssautoplot = mslib.utils.mssautoplot:main",
"msui = mslib.msui.msui:main",
"mswms = mslib.mswms.mswms:main",
"mswms_demodata = mslib.mswms.demodata:main"]
"mswms = mslib.mswms.mswms:main",]
# "mswms_demodata = mslib.mswms.demodata:main"]
if os.name != 'nt':
console_scripts.append('msidp = mslib.msidp.idp:main')

Expand Down

0 comments on commit 6525ac5

Please sign in to comment.