Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from LabSid-USP/refactoring/rubem-configuration
Implement a configuration system within the application that can handle multiple formats
- Loading branch information
Showing
46 changed files
with
2,872 additions
and
905 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
{ | ||
"value_ranges": { | ||
"rasters": { | ||
"dem": { | ||
"min": -100.0, | ||
"max": 10000.0 | ||
}, | ||
"clone": { | ||
"min": 0.0, | ||
"max": 1.0 | ||
}, | ||
"ndvi": { | ||
"min": -1.0, | ||
"max": 1.0 | ||
}, | ||
"soil": { | ||
"min": 0.0, | ||
"max": "Infinity" | ||
}, | ||
"sample_locations": { | ||
"min": 0.0, | ||
"max": "Infinity" | ||
}, | ||
"etp": { | ||
"min": 0.0, | ||
"max": "Infinity" | ||
}, | ||
"precipitation": { | ||
"min": 0.0, | ||
"max": "Infinity" | ||
}, | ||
"kp": { | ||
"min": 0.0, | ||
"max": 1.0 | ||
}, | ||
"landuse": { | ||
"min": 0.0, | ||
"max": "Infinity" | ||
} | ||
}, | ||
"variables": { | ||
"fraction_photo_active_radiation": { | ||
"min": 0.0, | ||
"max": 1.0 | ||
}, | ||
"leaf_area_interception_max": { | ||
"min": 0.0, | ||
"max": 12.0 | ||
}, | ||
"impervious_area_interception": { | ||
"min": 0.0, | ||
"max": 3.0 | ||
}, | ||
"initial_soil_moisture_content": { | ||
"min": 0.0, | ||
"max": 1.0 | ||
}, | ||
"baseflow": { | ||
"min": 0.0, | ||
"max": "Infinity" | ||
}, | ||
"initial_saturated_zone_storage": { | ||
"min": 0.0, | ||
"max": "Infinity" | ||
}, | ||
"alpha": { | ||
"min": 0.01, | ||
"max": 10.0 | ||
}, | ||
"beta": { | ||
"min": 0.01, | ||
"max": 1.0 | ||
}, | ||
"w_1": { | ||
"min": 0.0, | ||
"max": 1.0 | ||
}, | ||
"w_2": { | ||
"min": 0.0, | ||
"max": 1.0 | ||
}, | ||
"w_3": { | ||
"min": 0.0, | ||
"max": 1.0 | ||
}, | ||
"rcd": { | ||
"min": 1.0, | ||
"max": 10.0 | ||
}, | ||
"f": { | ||
"min": 0.01, | ||
"max": 1.0 | ||
}, | ||
"alpha_gw": { | ||
"min": 0.01, | ||
"max": 1.0 | ||
}, | ||
"x": { | ||
"min": 0.0, | ||
"max": 1.0 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,31 @@ | ||
channels: | ||
- conda-forge | ||
- defaults | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python=3.10 | ||
- gdal | ||
- pandas | ||
- pcraster | ||
- python=3.9.* | ||
- gdal | ||
- pandas | ||
- pcraster | ||
- pip | ||
- py | ||
- pyfakefs | ||
- pytest | ||
- pytest-cov | ||
- pytest-forked | ||
- pytest-mock | ||
- pytest-xdist | ||
- python-dateutil | ||
- tzdata | ||
- pip: | ||
- sphinx | ||
- sphinx-autodoc-typehints | ||
- sphinx-rtd-theme | ||
- sphinxcontrib-applehelp | ||
- sphinxcontrib-devhelp | ||
- sphinxcontrib-email | ||
- sphinxcontrib-htmlhelp | ||
- sphinxcontrib-jquery | ||
- sphinxcontrib-jsmath | ||
- sphinxcontrib-qthelp | ||
- sphinxcontrib-serializinghtml | ||
- sphinxcontrib-youtube |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[pytest] | ||
markers = | ||
slow: mark test as slow. | ||
unit: mark a test as a unit test. | ||
integration: mark a test as a integration test. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
from rubem.cli import main | ||
import os | ||
import sys | ||
|
||
try: | ||
from rubem.cli import main | ||
except ModuleNotFoundError: | ||
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))) | ||
from rubem.cli import main | ||
|
||
if __name__ == "__main__": | ||
main() |
Oops, something went wrong.