profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/ericchapman/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

ericchapman/ios_decoration_view 39

Example of how to make the section background in a UICollectionView different colors

ericchapman/ruby_wamp_client 27

WAMP Client for Ruby

e2technologies/ViewCSS 5

IOS Swift CSS implementation

e2technologies/zipcoder 3

Ruby Gem to handle zip code lookup

ericchapman/ruby_wamp_rails 2

Rails implementation of 'wamp_client'

ericchapman/ruby_wamp_worker 2

WAMP Client Rails Worker Integration

ericchapman/ios-fontawesome 1

NSString+FontAwesome

e2technologies/UIBuilder-swift 0

An iOS swift library intended to assist with programatically building complicated UI elements

ericchapman/backgrounder-vapor 0

Backgrounder worker utility built on top of Swift Vapor

ericchapman/capable 0

Ruby on Rails Gem that allows abilities to be assigned to 'capable' objects that can be expired and renewed

pull request commentOpenModelica/OMPython

Update OMTypedParser.py to support variable length arrays (:)

@sjoelund As far as I could tell, OMPython doesn't handle ":" at all. This was just a small example to replicate. Is OMEdit even able to handle it?

ericchapman

comment created time in 3 days

pull request commentOpenModelica/OMPython

Update OMTypedParser.py to support variable length arrays (:)

@sjoelund Oh sorry. I see you referenced my 'getComponents("Test")' call so you did see it. So are you saying that OMPython will not support making this call as it is not a part of the "typed" API? I had a very complicated workaround that required me to set "parsed=False" on the "sendExpression" call and then replace all ":" with a string so the parser would work, and then I had to replace it back after the parse.

ericchapman

comment created time in 3 days

pull request commentOpenModelica/OMPython

Update OMTypedParser.py to support variable length arrays (:)

@sjoelund Please note this is the issue I was trying to address https://github.com/OpenModelica/OMPython/issues/138

I would argue this is a completely valid thing to do

from OMPython import OMCSessionZMQ


if __name__ == "__main__":
    model = """
    model Test
      parameter Real TEST[:,2] = [0,1;100,2];
    end Test;
    """

    omc = OMCSessionZMQ()
    omc.sendExpression("loadString(\"{}\")".format(model))

    # Breaks
    print(omc.sendExpression("getComponents(Test)"))
ericchapman

comment created time in 3 days

PR opened OpenModelica/OMPython

Closes #138

Added support for variable length array ":"

+4 -3

0 comment

1 changed file

pr created time in 3 days

create barnchericchapman/OMPython

branch : issue138

created branch time in 3 days

fork ericchapman/OMPython

A Python interface to OpenModelica communicating via CORBA or ZeroMQ

fork in 3 days