Skip to content

Commit 8ddc6de

Browse files
authored
Update pynestml_frontend.py (#1206)
1 parent 6ed53ea commit 8ddc6de

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pynestml/frontend/pynestml_frontend.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def generate_genn_target(input_path: Union[str, Sequence[str]], target_path: Opt
362362

363363

364364
def generate_spinnaker_target(input_path: Union[str, Sequence[str]], target_path: Optional[str] = None, install_path: Optional[str] = None,
365-
logging_level="ERROR", module_name: str = "nestmlmodule", store_log: bool=False,
365+
logging_level="ERROR", store_log: bool=False,
366366
suffix: str="", dev: bool=False, codegen_opts: Optional[Mapping[str, Any]]=None):
367367
r"""Generate and build code for the SpiNNaker target.
368368
@@ -376,8 +376,6 @@ def generate_spinnaker_target(input_path: Union[str, Sequence[str]], target_path
376376
Path to the directory where the generated code will be installed.
377377
logging_level : str, optional (default: "ERROR")
378378
Sets which level of information should be displayed duing code generation (among "ERROR", "WARNING", "INFO", or "NO").
379-
module_name : str, optional (default: "nestmlmodule")
380-
The name of the generated Python module.
381379
store_log : bool, optional (default: False)
382380
Whether the log should be saved to file.
383381
suffix : str, optional (default: "")
@@ -387,9 +385,13 @@ def generate_spinnaker_target(input_path: Union[str, Sequence[str]], target_path
387385
codegen_opts : Optional[Mapping[str, Any]]
388386
A dictionary containing additional options for the target code generator.
389387
"""
388+
389+
# removed module_name from generate_spinnaker_target() arguments because it is not directly needed for the Jinja templates at the end of the pipeline
390+
# but still added to generate_target() to surpress following log: [5,GLOBAL, INFO]: No module name specified; the generated module will be named "nestmlmodule"
391+
390392
generate_target(input_path, target_platform="spinnaker", target_path=target_path,
391393
install_path=install_path,
392-
logging_level=logging_level, store_log=store_log, suffix=suffix, dev=dev,
394+
logging_level=logging_level, module_name="nestmlmodule", store_log=store_log, suffix=suffix, dev=dev,
393395
codegen_opts=codegen_opts)
394396

395397

tests/spinnaker_tests/test_spinnaker_iaf_psc_exp.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,11 @@ def generate_code(self):
4444
target_path = "spinnaker-target"
4545
install_path = "spinnaker-install"
4646
logging_level = "DEBUG"
47-
module_name = "nestmlmodule"
4847
suffix = "_nestml"
4948
generate_spinnaker_target(input_path,
5049
target_path=target_path,
5150
install_path=install_path,
5251
logging_level=logging_level,
53-
module_name=module_name,
5452
suffix=suffix)
5553
# codegen_opts=codegen_opts)
5654

0 commit comments

Comments
 (0)