dsavransky/EXOSIMS

Balmer2020 get prototype module fail

Closed this issue · 0 comments

I am attempted to run in Balmer2020 branch. The script ran successfully in main. In the Balmer2020 branch, it gives an error that the prototype TargetList module cannot be found because it can't open " ". I received the same error with multiple scripts that listed the TargetList module as " ". I also tried "" and received a similar error.
The scriptfile contains:
"modules": {
"PlanetPopulation": "AlbedoByRadiusDulzPlavchan",
"StarCatalog": "EXOCAT1",
"OpticalSystem": "Nemati",
"ZodiacalLight": "Mennesson",
"BackgroundSources": "GalaxiesFaintStars",
"PlanetPhysicalModel": "Forecaster",
"Observatory": "WFIRSTObservatoryL2",
"TimeKeeping": " ",
"PostProcessing": " ",
"Completeness": "BrownCompleteness",
"TargetList": " ",
"SimulatedUniverse": "DulzPlavchanUniverseEarthsOnly",
"SurveySimulation": "linearJScheduler_orbitChar",
"SurveyEnsemble": "EXOSIMS_local.IPClusterEnsembleJPL2"
}

Here is the error trace:
[rhonda@aftac2 EXOSIMS]$ git checkout balmer2020
Switched to branch 'balmer2020'
Your branch is up to date with 'upstream/balmer2020'.
[rhonda@aftac2 EXOSIMS]$ ipython
Python 3.7.6 (default, Jan 8 2020, 19:59:22)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.12.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import EXOSIMS,os.path
...: import EXOSIMS.MissionSim as msim
...: import EXOSIMS.StarCatalog.EXOCAT1 as exc
...: import numpy as np
...: import math as ma
...: import sys, pdb
...: import matplotlib.pyplot as plt
...: import astropy.units as u
...: import pickle, json, warnings, astropy

In [2]: scriptfile = '/proj/exep/rhonda/Sandbox/HabEx/Scripts/ATSA_LJSoC_DulzE_TV3_base_IR1_a.12b.5c0d0.3e0f.05_2
...: 0210423.json'

In [3]: sim =
File "", line 1
sim =
^
SyntaxError: invalid syntax

In [4]: sim = EXOSIMS.MissionSim.MissionSim(scriptfile,nopar=True, seed=777)
No-parallel: resetting SurveyEnsemble to Prototype
Imported linearJScheduler_orbitChar (specific module) from EXOSIMS.SurveyS[...]inearJScheduler_orbitChar
Numpy random seed is: 777
Imported DulzPlavchanUniverseEarthsOnly (specific module) from EXOSIMS.Simulat[...]lavchanUniverseEarthsOnly
Error: No module on paths: "EXOSIMS.Prototypes.TargetList".

ValueError Traceback (most recent call last)
in
----> 1 sim = EXOSIMS.MissionSim.MissionSim(scriptfile,nopar=True, seed=777)

/proj/exep/rhonda/exosimsRhonda/EXOSIMS/EXOSIMS/MissionSim.py in init(self, scriptfile, nopar, verbose, **specs)
146 #create a surveysimulation object (triggering init of everything else)
147 self.SurveySimulation = get_module(specs['modules']['SurveySimulation'],
--> 148 'SurveySimulation')(**specs)
149
150 # collect sub-initializations

/proj/exep/rhonda/exosimsRhonda/EXOSIMS/EXOSIMS/SurveySimulation/linearJScheduler_orbitChar.py in init(self, coeffs, revisit_wait, n_det_remove, n_det_min, max_successful_dets, det_only, **specs)
43 n_det_min=3, max_successful_dets=4, det_only=False, **specs):
44
---> 45 SurveySimulation.init(self, **specs)
46 TL = self.TargetList
47 OS = self.OpticalSystem

/proj/exep/rhonda/exosimsRhonda/EXOSIMS/EXOSIMS/Prototypes/SurveySimulation.py in init(self, scriptfile, ntFlux, nVisitsMax, charMargin, WAint, dMagint, dt_max, scaleWAdMag, record_counts_path, nokoMap, cachedir, defaultAddExoplanetObsTime, dMagLim_offset, find_known_RV, **specs)
174 # import desired module names (prototype or specific)
175 self.SimulatedUniverse = get_module(specs['modules']['SimulatedUniverse'],
--> 176 'SimulatedUniverse')(**specs)
177 self.Observatory = get_module(specs['modules']['Observatory'],
178 'Observatory')(**specs)

/proj/exep/rhonda/exosimsRhonda/EXOSIMS/EXOSIMS/SimulatedUniverse/DulzPlavchanUniverseEarthsOnly.py in init(self, **specs)
10 def init(self, **specs):
11
---> 12 SimulatedUniverse.init(self, **specs)
13
14 def gen_physical_properties(self, **specs):

/proj/exep/rhonda/exosimsRhonda/EXOSIMS/EXOSIMS/Prototypes/SimulatedUniverse.py in init(self, fixedPlanPerStar, Min, cachedir, lucky_planets, commonSystemInclinations, **specs)
140 # import TargetList class
141 self.TargetList = get_module(specs['modules']['TargetList'],
--> 142 'TargetList')(**specs)
143
144 # bring inherited class objects to top level of Simulated Universe

/proj/exep/rhonda/exosimsRhonda/EXOSIMS/EXOSIMS/util/get_module.py in get_module(name, folder)
236 full_module = get_module_in_package(name, folder)
237 if not full_module:
--> 238 raise ValueError('Could not import module "%s" (path issue?).' % name)
239 source = full_module.name
240 note = 'prototype' if 'EXOSIMS.Prototypes' in full_module.name else 'specific'

ValueError: Could not import module " " (path issue?).

In [5]: sim = EXOSIMS.MissionSim.MissionSim(scriptfile,nopar=True, seed=777)
No-parallel: resetting SurveyEnsemble to Prototype
Imported linearJScheduler_orbitChar (specific module) from EXOSIMS.SurveyS[...]inearJScheduler_orbitChar
Numpy random seed is: 777
Imported DulzPlavchanUniverseEarthsOnly (specific module) from EXOSIMS.Simulat[...]lavchanUniverseEarthsOnly
Error: No module on paths: "EXOSIMS.Prototypes.TargetList".

ValueError Traceback (most recent call last)
in
----> 1 sim = EXOSIMS.MissionSim.MissionSim(scriptfile,nopar=True, seed=777)

/proj/exep/rhonda/exosimsRhonda/EXOSIMS/EXOSIMS/MissionSim.py in init(self, scriptfile, nopar, verbose, **specs)
146 #create a surveysimulation object (triggering init of everything else)
147 self.SurveySimulation = get_module(specs['modules']['SurveySimulation'],
--> 148 'SurveySimulation')(**specs)
149
150 # collect sub-initializations

/proj/exep/rhonda/exosimsRhonda/EXOSIMS/EXOSIMS/SurveySimulation/linearJScheduler_orbitChar.py in init(self, coeffs, revisit_wait, n_det_remove, n_det_min, max_successful_dets, det_only, **specs)
43 n_det_min=3, max_successful_dets=4, det_only=False, **specs):
44
---> 45 SurveySimulation.init(self, **specs)
46 TL = self.TargetList
47 OS = self.OpticalSystem

/proj/exep/rhonda/exosimsRhonda/EXOSIMS/EXOSIMS/Prototypes/SurveySimulation.py in init(self, scriptfile, ntFlux, nVisitsMax, charMargin, WAint, dMagint, dt_max, scaleWAdMag, record_counts_path, nokoMap, cachedir, defaultAddExoplanetObsTime, dMagLim_offset, find_known_RV, **specs)
174 # import desired module names (prototype or specific)
175 self.SimulatedUniverse = get_module(specs['modules']['SimulatedUniverse'],
--> 176 'SimulatedUniverse')(**specs)
177 self.Observatory = get_module(specs['modules']['Observatory'],
178 'Observatory')(**specs)

/proj/exep/rhonda/exosimsRhonda/EXOSIMS/EXOSIMS/SimulatedUniverse/DulzPlavchanUniverseEarthsOnly.py in init(self, **specs)
10 def init(self, **specs):
11
---> 12 SimulatedUniverse.init(self, **specs)
13
14 def gen_physical_properties(self, **specs):

/proj/exep/rhonda/exosimsRhonda/EXOSIMS/EXOSIMS/Prototypes/SimulatedUniverse.py in init(self, fixedPlanPerStar, Min, cachedir, lucky_planets, commonSystemInclinations, **specs)
140 # import TargetList class
141 self.TargetList = get_module(specs['modules']['TargetList'],
--> 142 'TargetList')(**specs)
143
144 # bring inherited class objects to top level of Simulated Universe

/proj/exep/rhonda/exosimsRhonda/EXOSIMS/EXOSIMS/util/get_module.py in get_module(name, folder)
236 full_module = get_module_in_package(name, folder)
237 if not full_module:
--> 238 raise ValueError('Could not import module "%s" (path issue?).' % name)
239 source = full_module.name
240 note = 'prototype' if 'EXOSIMS.Prototypes' in full_module.name else 'specific'

ValueError: Could not import module "" (path issue?).