diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64978c3..3bfdf23 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: Build on: push: - branches: [ master, development, experimental ] + branches: [ master, development, experimental, test* ] pull_request: - branches: [ master, development, experimental ] + branches: [ master, development, experimental, test* ] jobs: build: @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.9", "3.10", "3.11"] + python-version: ["3.9", "3.10", "3.11", "3.12"] runs-on: [ubuntu-latest, windows-latest, macos-latest] steps: diff --git a/README.md b/README.md index 6919e7f..09cff66 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Build](https://github.com/LEMS/pylems/actions/workflows/ci.yml/badge.svg)](https://github.com/LEMS/pylems/actions/workflows/ci.yml) [![Check LEMS examples](https://github.com/LEMS/pylems/actions/workflows/examples.yml/badge.svg)](https://github.com/LEMS/pylems/actions/workflows/examples.yml) [![Documentation Status](https://readthedocs.org/projects/pylems/badge/?version=latest)](https://pylems.readthedocs.io/en/latest/?badge=latest) +[![PyPI](https://img.shields.io/pypi/v/pylems)](https://pypi.org/project/pylems/) A LEMS (http://lems.github.io/LEMS) simulator written in Python which can be used to run NeuroML2 models (see [here](https://docs.neuroml.org/Userdocs/Software/pyLEMS.html)). diff --git a/lems/parser/LEMS.py b/lems/parser/LEMS.py index c4dc22a..79d8400 100644 --- a/lems/parser/LEMS.py +++ b/lems/parser/LEMS.py @@ -647,7 +647,14 @@ def parse_constant(self, node): else: description = None - constant = Constant(name, value, dimension, description) + if "symbol" in node.lattrib: + symbol = node.lattrib["symbol"] + else: + symbol = None + + constant = Constant( + name, value, dimension=dimension, description=description, symbol=symbol + ) if self.current_component_type: self.current_component_type.add_constant(constant) diff --git a/setup.cfg b/setup.cfg index 3068171..a84acf1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = PyLEMS -version = 0.6.4 +version = 0.6.5 author = PyLEMS authors and contributors author_email = gautham@lisphacker.org, p.gleeson@gmail.com maintainer_email = p.gleeson@gmail.com @@ -13,12 +13,11 @@ classifiers = License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3) Natural Language :: English Operating System :: OS Independent - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Topic :: Scientific/Engineering license = LGPL-3.0-only