tietai-synthea 1.0.0
Standard Python package source code
“PySynthea - a Python-native synthetic patient population simulator”
Assigns a string replace resultPython json.load call
SHA-2562b496d790ee4398ed48d80215334a65765b9ba901ea4186e3fad5c1c5e0f5f5e
MaleculeO₂(SXe)H(Db)
Evidence
165:32… 'synthea.modules.core.{module_name}'
166 imported = importlib.import_module(module_path)
167
168 # Find the module class in the imported module
169 for name, obj in i …
175:38… keys.add(module_name)
176 break
177 except ImportError:
178 # Core module not implemented yet
179 pass
180
181 @classmethod
182 def _load_json_modules(cls, pa …
202:12… return
203
204 # Recursively find all .json files
205 for json_file in module_path.rglob('*.json'):
206 try:
207 cls._load_json_module(json_file, module_path)
⋯5 lines
213 """Load a single JSON module."""
214 with open(filepath, 'r', encoding='utf-8') as f:
215 definition = json.load(f)
216
217 json_name = definition.get('name', filepath.stem)
218
219 # Use relative path as the canonical module identity, ma …
223:21… h = str(filepath.relative_to(base_path).with_suffix(''))
224 path_key = relative_path.replace(os.sep, '/')
225
226 def create_module():
227 return cls._create_from_json(path_key, definition)
228
229 # Register by …
285:27… s) -> List[str]:
286 """Get list of top-level module names (excludes submodules in subdirectories).
287
288 Submodules (paths containing '/') are only executed when called via
289 CallSubmodu …
No evidence locations were recorded for this file. Raw result