Skip to content

Compatibility with latest version of PySB - #13

Open
acorbat wants to merge 2 commits into
sorgerlab:masterfrom
acorbat:master
Open

Compatibility with latest version of PySB#13
acorbat wants to merge 2 commits into
sorgerlab:masterfrom
acorbat:master

Conversation

@acorbat

@acorbat acorbat commented Mar 30, 2020

Copy link
Copy Markdown

I merely swapped <> operator for | in order to recover compatibility with latest version of PySB. I only replaced this occurrences in the code, not replacing them in the comments as I find <> more visually appealing to describe chemical reactions.

@jmuhlich

Copy link
Copy Markdown
Member

@clopezx @johnbachman Looks good to me. How do you guys feel about leaving <> in the comments unchanged?

@clopezx

clopezx commented Mar 30, 2020 via email

Copy link
Copy Markdown
Collaborator

@acorbat

acorbat commented Mar 30, 2020

Copy link
Copy Markdown
Author

I thought the same as you @clopezx, that would make the code consistent and easier to understand for someone with programming background. On the other hand, I thought that someone coming from a chemical or biological background would find <> more suitable.

@clopezx

clopezx commented Mar 30, 2020 via email

Copy link
Copy Markdown
Collaborator

@jmuhlich

Copy link
Copy Markdown
Member

Another potential solution is changing the comments to use a syntax that's definitely not Python so the chance of confusion should be far lower. Maybe something like A + B <-> AB?

@alubbock

Copy link
Copy Markdown

Related: I added Python 3 support to the lolab-vu/earm fork back in 2018 in this commit: LoLab-MSM@9236b55

Happy to PR that if you like. I didn't change the documentation re: the issue above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants