Skip to content

Commit

Permalink
make readData optional
Browse files Browse the repository at this point in the history
  • Loading branch information
drtobybrown committed Nov 2, 2024
1 parent 651a6bb commit 28ae204
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion gistPipeline/MainPipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

matplotlib.use("pdf")

from printStatus import printStatus

from gistPipeline._version import __version__
from gistPipeline.auxiliary import _auxiliary
from gistPipeline.continuumCube import _continuumCube
Expand All @@ -43,7 +45,6 @@
from gistPipeline.starFormationHistories import _starFormationHistories
from gistPipeline.stellarKinematics import _stellarKinematics
from gistPipeline.userModules import _userModules
from printStatus import printStatus


def skipGalaxy(config):
Expand Down Expand Up @@ -116,6 +117,8 @@ def runGIST(dirPath, galindex):
skipGalaxy(config)
return None

del cube

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# - - - - - - - - - - A N A L Y S I S M O D U L E S - - - - - - - - - - -
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Expand Down
11 changes: 7 additions & 4 deletions gistPipeline/readData/_readData.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ def readData_Module(config):

# Check if module is turned off in MasterConfig
if config["READ_DATA"]["METHOD"] == False:
message = "The module was turned off. The GIST cannot be executed without running the readData module."
printStatus.failed(message)
logging.critical(message)
return "SKIP"
# message = "The module was turned off. The GIST cannot be executed without running the readData module."
# printStatus.failed(message)
# return "SKIP"
message = "Read data module was turned off. Module is skipped but beware this can cause issues with the preparation modules."
logging.warning(message)
printStatus.warning(message)
return None

# Import the chosen readData routine
try:
Expand Down

0 comments on commit 28ae204

Please sign in to comment.