Skip to content

Include input-directory path option in argparser #28

Open

Description

@bobleesj

Problem

All outputs are saved in the current working directory where the script is executed, making it difficult to tests via pytest (we want to use tmpdir)

Proposed solution

Like in diffpy.snmf , allow the user to set the output directory.

    parser.add_argument(
        "-o",
        "--output-directory",
        type=str,
        help="The directory where the results will be written. Defaults to '<input_directory>/snmf_results'.",
    )

Activity

  1. added this to the 1.1.0 milestone on Nov 1, 2024
  2. sbillinge commented on Nov 1, 2024

    @sbillinge
    Contributor

    sounds good. Please don't change any default behaviors because this is actually deployed in the cloud and we don't currently release this, though we could. Presumably any changes to the defaults will break the online deployment.

    We originally thought that releasing it would compete with our online offering, but probably it doesn't....different people probably want to use it in different forms.

  3. bobleesj commented on Nov 1, 2024

    @bobleesj
    ContributorAuthor

    Fully noted - will maintain existing behaviors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions