-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added multiple models convection model
Added new functionality: Multiple species pressure based convection model for biomass propagation. v.0.5.0 06/22/24 ID
- Loading branch information
Showing
8 changed files
with
87 additions
and
8 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
|
@@ -17,13 +17,13 @@ | |
import numpy as np | ||
import platform | ||
|
||
__author__ = "Djordje Bajic, Jean Vila, Jeremy Chacon" | ||
__author__ = "Djordje Bajic, Jean Vila, Jeremy Chacon, Ilija Dukovski" | ||
__copyright__ = "Copyright 2024, The COMETS Consortium" | ||
__credits__ = ["Djordje Bajic", "Jean Vila", "Jeremy Chacon"] | ||
__credits__ = ["Djordje Bajic", "Jean Vila", "Jeremy Chacon", "Ilija Dukovski"] | ||
__license__ = "MIT" | ||
__version__ = "0.4.20" | ||
__comets_compatibility__ = "2.11.1" # version of comets this was tested with (except signaling) | ||
__comets_compatibility_signaling__ = "2.11.1" # version signaling was tested with | ||
__version__ = "0.5.0" | ||
__comets_compatibility__ = "2.12.0" # version of comets this was tested with (except signaling) | ||
__comets_compatibility_signaling__ = "2.12.0" # version signaling was tested with | ||
|
||
__maintainer__ = "Djordje Bajic" | ||
__email__ = "[email protected]" | ||
|
@@ -347,6 +347,7 @@ def run(self, delete_files : bool = True): | |
""" | ||
print('\nRunning COMETS simulation ...') | ||
print('\nDebug Here ...') | ||
|
||
# If evolution is true, write the biomass but not the total biomass log | ||
if self.parameters.all_params['evolution']: | ||
|
@@ -389,10 +390,10 @@ def run(self, delete_files : bool = True): | |
shell=True, stdout=sp.PIPE, stderr=sp.STDOUT) | ||
|
||
self.run_output, self.run_errors = p.communicate() | ||
self.run_output = self.run_output.decode() | ||
self.run_output = self.run_output.decode('ascii','ignore') | ||
|
||
if self.run_errors is not None: | ||
self.run_errors = self.run_errors.decode() | ||
self.run_errors = self.run_errors.decode('ascii','ignore') | ||
else: | ||
self.run_errors = "STDERR empty." | ||
|
||
|
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
Binary file not shown.
Binary file not shown.