Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat:command changes#2644

Open
anj20 wants to merge 14 commits into
Open-MSS:develop from
anj20:feat/command_changes
Open

feat:command changes #2644
anj20 wants to merge 14 commits into
Open-MSS:develop from
anj20:feat/command_changes

Conversation

@anj20

@anj20 anj20 commented Feb 12, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

Purpose of PR?: Replace the mswms_demodata command with a --seed option for the mswms command, aligning it with the behavior of the seed option in mscolab

Fixes #2631

Does this PR introduce a breaking change?
No

If the changes in this PR are manually verified, list down the scenarios covered::
Verified that the seed function runs correctly when executed using mswms -seed

Checklist:

  • Bug fix. Fixes #
  • New feature (Non-API breaking changes that adds functionality)
  • PR Title follows the convention of <type>: <subject>
  • Commit has unit tests

Comment thread mslib/mswms/mswms.py
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)

@ReimarBauer ReimarBauer Feb 13, 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.

and what does this?

Have you tried the examples?

@anj20 anj20 Feb 24, 2025
edited
Loading

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.

@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.

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
edited
Loading

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?

Copy link
Copy Markdown
Member

@anj20 do you have time to finish this in the next days?

@anj20 anj20 requested a review from ReimarBauer March 2, 2025 13:17

Copy link
Copy Markdown
Member

@anj20
please solve the merge conflict

Comment thread mslib/mswms/mswms.py
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")

@ReimarBauer ReimarBauer Mar 3, 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.

when this is now copied here and we won ́t call mswms_demodata any more the main function of demodata can be removed.

setup.py needs changes

and the docs need changes too

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.

ok lemme make the changes

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 do i need to remove the entire main funtion?

@ReimarBauer ReimarBauer Mar 4, 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.

there should not be more copy/paste duplicated code.

@ReimarBauer ReimarBauer left a comment

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.

see comments

anj20 commented Mar 3, 2025

Copy link
Copy Markdown
Contributor Author

see comments

updated plz review it

@anj20 anj20 requested a review from ReimarBauer March 3, 2025 09:00

Copy link
Copy Markdown
Member

this likly needs a rebase to develop

@ReimarBauer ReimarBauer left a comment

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.

see comments, remove commented off old lines.

Comment thread README.md

pixi global update mss


@ReimarBauer ReimarBauer Mar 3, 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.

That is not part of the issue

Comment thread README.md
@@ -44,7 +44,6 @@ and don't need server configurations.
##### Updating
pixi global update mss

@ReimarBauer ReimarBauer Mar 4, 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.

what are the changes here?

Comment thread README.md
We are very grateful for your continuing support for MSS!

See our [Contributors page](https://mss.readthedocs.io/en/stable/authors.html) for a list of authors. See also our info on [funding](
https://mss.readthedocs.io/en/stable/funding.html). No newline at end of file

@ReimarBauer ReimarBauer Mar 4, 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.

what is wrong with the line and how it is related to the task?

Comment thread mslib/mswms/mswms.py
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")

@ReimarBauer ReimarBauer Mar 4, 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.

there should not be more copy/paste duplicated code.

@anj20 anj20 requested a review from ReimarBauer March 6, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ReimarBauer ReimarBauer Awaiting requested review from ReimarBauer

Requested changes must be addressed to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

change the command mswms_demodata to seed of mswms

AltStyle によって変換されたページ (->オリジナル) /