Coder Social home page Coder Social logo

eattardo / pyefie-2d Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 49 KB

This repository contains the Python code to efficiently solving a simple volumetric integral equation on a 2D cross-section. Some background is available at https://github.com/eattardo/efie-2d

Python 100.00%

pyefie-2d's People

Watchers

 avatar

Forkers

annexbananjo

pyefie-2d's Issues

parse_json

I am not sure what environment you work with but I use pycharm and there are some issues with parse_json. It's mainly just indexing issues. For example, you mean to access "resolution" using data["resolution] but "resolution" is within "solver" so it has to be
data["solver"]["resolution"].

"solver":{
"resolution": 0.0085,
"frequency": {
"id": 1,
"val": 299792458
}
}

Another instance is trying to access multiple entries at once. You pass every obj in data['geometry']['circle'] to factory_circle. Factory circle then looks for the element in obj['id']. But passing every obj means you are indexing a string, obj is already being passed as 1, 1, [0,0], 0.1591.

"geometry": {
"circle": {
"id": 1,
"id_mat": 1,
"center": [0, 0],
"radius": 0.1591
}
}

for obj in data['geometry'][d]:
circ = factory_circle(obj)
vecObj.append(circ)

def factory_circle(dictObj):
""" Create a circle object from parsed json file
"""
idObj = dictObj['id']

It looks like the submission may change the formatting so the tabs for the functions are gone

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.