Skip to content

Commit

Permalink
Merge branch 'development' into experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Feb 6, 2024
2 parents e058c24 + f25dd5c commit 1034d5b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pyneuroml/analysis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def generate_current_vs_frequency_curve(
:param simulator: simulator to use
:type simulator: str
:param num_processors: number of processors to use for analysis
This option is only used with NetPyNE which can use MPI for
parallelising simulations. For other simulators, this is unused.
:type num_processors: int
:param include_included: include included files
:type include_included: bool
Expand Down
13 changes: 11 additions & 2 deletions pyneuroml/pynml.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,16 @@ def generate_interactive_plot(*args, **kwargs):
)


# read from env variable if found
try:
java_max_memory = os.environ["JNML_MAX_MEMORY_LOCAL"]
except KeyError:
java_max_memory = "400M"


DEFAULTS = {
"v": False,
"default_java_max_memory": "400M",
"default_java_max_memory": java_max_memory,
"nogui": False,
} # type: dict[str, typing.Any]

Expand Down Expand Up @@ -2497,7 +2504,9 @@ def run_jneuroml(
:param target_file: LEMS or NeuroML file to run jnml on
:type target_file: str
:param max_memory: maximum memory allowed for use by the JVM
:type max_memory: bool
Note that the default value of this can be overridden using the
JNML_MAX_MEMORY_LOCAL environment variable
:type max_memory: str
:param exec_in_dir: working directory to execute LEMS simulation in
:type exec_in_dir: str
:param verbose: toggle whether jnml should print verbose information
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ console_scripts =
*.md
*.xsl
*.hoc
TEMPLATE.channel.nml

[options.extras_require]
neuron =
Expand Down

0 comments on commit 1034d5b

Please sign in to comment.