Recent Posts

Sunday, September 22, 2019

sfc_models Parsing Errors?

I got a question about a parsing error in the sfc_models package.  The error given is:

"NotImplementedError: Non-simple parsing not done"


If this is happening to you, the file equation.py needs to be updated to match the development branch version. Link to the file:

https://github.com/brianr747/SFC_models/blob/development/sfc_models/equation.py

There was a change of behaviour between Python versions 3.4/3.5 and 3.7. The code is now cleaner, and it now works for me on Python versions 3.5 and 3.7.

I have pushed the change to both branches on GitHub, and updated the release version on PyPi (what pip installs) to version 1.0.3.

Note: If you have problems, one way to diagnose problems is to run the unit tests. (Very easy to do from PyCharm.)

(c) Brian Romanchuk 2019

2 comments:

  1. Thank you for this Brian. It works perfectly now.

    ReplyDelete
    Replies
    1. (This is Brian.) Great. I was unsure about the fix, and so I held off pushing it to GitHub.

      Delete

Note: Posts are manually moderated, with a varying delay. Some disappear.

The comment section here is largely dead. My Substack or Twitter are better places to have a conversation.

Given that this is largely a backup way to reach me, I am going to reject posts that annoy me. Please post lengthy essays elsewhere.