TNO Intern

Commit 0a67a8cf authored by Florian Knappers's avatar Florian Knappers
Browse files

started with adding cli option

parent 20c3a41c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4829,8 +4829,8 @@ packages:
  timestamp: 1740946648058
- pypi: ./
  name: pythermogis
  version: 1.2.1
  sha256: adc786bc376cdca6369d5cb58bd4bc7597c9c00a620cbeef48d591239c4ad966
  version: 1.2.2
  sha256: baf3b6620dc9442685dc46eb20340b3a59ee6defca113b9c467e0338805e9091
  requires_dist:
  - jpype1>=1.5.2,<2
  - xarray==2024.9.0.*
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ markers = [
[tool.setuptools]
package-dir = {"" = "src"}

[tool.pixi.project]
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64"]

+9 −0
Original line number Diff line number Diff line
@@ -65,5 +65,14 @@ def simulate_doublet(
        else:
            typer.echo(typer.style("Error: Invalid output file type provided, currently supported: .nc, .csv, .json", fg=typer.colors.RED, bold=True))


@app.command()
def potential(
        output_file: Path = typer.Option(None, help="A file to output the data to, accepted filetypes are: .nc, .csv, .xlsx, .json"),
        verbose: bool = typer.Option(False, help="print the input data and output data to terminal")
) -> None:
    """Perform the potential calculation for a given location."""
    print("So much potential..")

if __name__ == "__main__":
    app()
 No newline at end of file