ErikNixdorf / sbat

The Repo for the Surface Water Balance Analysis Tool
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

fixed relative import as well as baseflow doubling #12

Closed ErikNixdorf closed 1 year ago

ErikNixdorf commented 1 year ago

Fixes #8 and #7

MarcoHannemann commented 1 year ago

The imports are still not working, however renaming was succesful. What happens if you import as:

from bflow.bflow import compute_baseflow,add_gauge_stats,plot_bf_results

This works for me.

In the current form I still get errors:


Traceback (most recent call last):
  File "/home/hannemam/Projects/sbat/sbat/sbat.py", line 12, in <module>
    from sbat.bflow.bflow import compute_baseflow,add_gauge_stats,plot_bf_results
  File "/home/hannemam/Projects/sbat/sbat/sbat.py", line 12, in <module>
    from sbat.bflow.bflow import compute_baseflow,add_gauge_stats,plot_bf_results
ModuleNotFoundError: No module named 'sbat.bflow'; 'sbat' is not a package```
ErikNixdorf commented 1 year ago

I changed it by adduing the library path to pathlib in the _init.py, now both running sbat.pyas well as apply_sbat.pywork on my machine

ErikNixdorf commented 1 year ago

from my point of view this also closes #4