Skip to content

Commit

Permalink
Merge pull request #29 from EzequielPuerta/27-fixes-for-custom-lattices
Browse files Browse the repository at this point in the history
Fixed pipeline
  • Loading branch information
EzequielPuerta committed Jun 30, 2024
2 parents 1197118 + ec17078 commit c235511
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ jobs:
command: |
export GITHUB_HOSTNAME="github.com"
set -- "$@" --notes-file "./CHANGELOG.md"
set -- "$@" --title "simulab v0.0.14"
set -- "$@" --title "simulab v0.0.15"
set -- "$@" --repo "$(git config --get remote.origin.url)"
gh release create "0.0.14" "$@"
gh release create "0.0.15" "$@"
workflows:
build_test_publish:
jobs:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.0.15] - 2024-06-29

### Fixed

Fixes for custom lattices

## [0.0.14] - 2024-06-29

### Added
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "simulab"
version = "0.0.14"
version = "0.0.15"
description = "Simple simulation framework, created during a course of the Discrete Events Simulation Laboratory, from the University of Buenos Aires (https://modsimu.exp.dc.uba.ar/sed/)"
authors = ["Armando Ezequiel Puerta <armando.ezequiel.puerta@gmail.com>"]
license = "MIT License"
Expand Down
6 changes: 5 additions & 1 deletion simulab/models/abstract/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ def __create_agent_as(
j: int,
) -> Agent:
target = self.configuration.at(i, j)
agent = target if isinstance(target, Agent) else method(target, i, j)
agent = (
target
if isinstance(target, Agent) and type(target) is not Agent
else method(target, i, j)
)
self._by_type[agent.agent_type].add((i, j))
return agent

Expand Down

0 comments on commit c235511

Please sign in to comment.