-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revised model to avoid uploading model log and output rasters through an optional command line argument. This makes test runs in local Docker easier because the model won't be trying to upload rasters after each step, which can be very slow. It also helps users who want to run the model but don't have an s3 account. The default is still to upload results-- the new flag deactivates uploads. (Note: This doesn't fully cut the connection with s3. If input files aren't locally available, the model still tries to download inputs from s3.) Ran the model locally by stage and in run_full_model.py to make sure uploads were indeed blocked at every step and the model still ran. It seemed fine. * Had to fix a few things to make the model work with uploads again. Also, changed some run_full_model.py command line arguments to become flags rather than the user writing true or false.
- Loading branch information
Showing
39 changed files
with
685 additions
and
646 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 |
---|---|---|
|
@@ -57,10 +57,10 @@ RUN ln -s /usr/bin/python3 /usr/bin/python | |
RUN git config --global user.email [email protected] | ||
|
||
## Check out the branch that I'm currently using for model development | ||
#RUN git checkout model_v_1.2.0 | ||
#RUN git checkout model_v_1.2.1 | ||
# | ||
## Makes sure the latest version of the current branch is downloaded | ||
#RUN git pull origin model_v_1.2.0 | ||
#RUN git pull origin model_v_1.2.1 | ||
|
||
## Compile C++ scripts | ||
#RUN g++ /usr/local/app/emissions/cpp_util/calc_gross_emissions_generic.cpp -o /usr/local/app/emissions/cpp_util/calc_gross_emissions_generic.exe -lgdal && \ | ||
|
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.