TNO Intern

Commit 13ce8c18 authored by Hen Brett's avatar Hen Brett 🐔
Browse files

Reorganising the package to follow conventions

parent 744b245c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
<module type="PYTHON_MODULE" version="4">
  <component name="NewModuleRootManager">
    <content url="file://$MODULE_DIR$">
      <sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
      <sourceFolder url="file://$MODULE_DIR$/tests/tests" isTestSource="true" />
      <excludeFolder url="file://$MODULE_DIR$/.venv" />
    </content>
@@ -11,7 +12,7 @@
  <component name="PyNamespacePackagesService">
    <option name="namespacePackageFolders">
      <list>
        <option value="$MODULE_DIR$/pythermogis/resources" />
        <option value="$MODULE_DIR$/src/pythermogis/resources" />
      </list>
    </option>
  </component>
+21 −20
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ This will fetch the package from the specified GitLab package repository.
Here’s a simple example demonstrating how to use `pyThermoGIS` for a single set of input values:

```python
from pythermogis import calculate_doublet_performance
from src.pythermogis import calculate_doublet_performance
import xarray as xr

# Initialize an input Dataset with the required input variables:
@@ -67,7 +67,7 @@ The API utilizes xarray's ability to efficiently calculate over multiple dimensi
dimensions:

```python
from pythermogis import calculate_doublet_performance
from src.pythermogis import calculate_doublet_performance
import xarray as xr
import numpy as np

@@ -94,8 +94,9 @@ print(doublet_simulation_results)
```

Consider utilizing the pypi package pygridsio to read in and write out 2D raster grids (with either .asc, .zmap, .nc, .tif file formats) to a xarray dataset, before applying the calculate_doublet_performance code:

```python
from pythermogis import calculate_doublet_performance
from src.pythermogis import calculate_doublet_performance
from pygridsio.pygridsio import read_grid

# Initialize an input Dataset with the required input variables:
+0 −0

File moved.

+0 −0

File moved.

Loading