Skip to content
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ It is possible to list all versions of `mss` available on your platform with:
For a simple test you can setup a demodata wms server and start a msolab server with default settings

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are the changes here?

```
(mssenv) $ mswms_demodata --seed
(mssenv) $ mswms --seed
(mssenv) $ export PYTHONPATH=~/mss
(mssenv) $ mswms &
(mssenv) $ mscolab start &
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,6 @@ You can start server and client by loading the image ::
$ singularity build -f mss.sif Singularity.def
$ singularity shell mss.sif
$ Singularity > msui # starts the ui
$ Singularity > mswms_demodata --seed # creates in your $HOME a mss/ folder with testdata
$ Singularity > mswms --seed # creates in your $HOME a mss/ folder with testdata
$ Singularity > export PYTHONPATH=$HOME/mss; mswms # starts the development server
$ Singularity > mscolab db --init; mscolab start # starts the mscolab development server
2 changes: 2 additions & 0 deletions mslib/mswms/mswms.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def main():
parser.add_argument("--debug", help="show debugging log messages on console", action="store_true", default=False)
parser.add_argument("--logfile", help="If set to a name log output goes to that file", dest="logfile",
default=None)
parser.add_argument("-s", "--seed", help="creates demodata for the mswms server",
action="store_true", default=False)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and what does this?

Have you tried the examples?

@anj20 anj20 Feb 24, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and what does this?

Have you tried the examples?

It adds an argument '-s' or '--seed' to enable data seeding using the mswms command.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and how is the method called?

Does it create demodata in a dir as the description says?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no it is not creating

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can u give some hint where to do the changes?

@ReimarBauer ReimarBauer Feb 24, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look in conftest for an example, this creates also demodata for the tests.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi i have added the seed function. Can u jst review it?


subparsers = parser.add_subparsers(help='Available actions', dest='action')
gallery = subparsers.add_parser("gallery", help="Subcommands surrounding the gallery")
Expand Down