Giter VIP home page Giter VIP logo

viasp's People

Contributors

glaserl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

potassco

viasp's Issues

Dynamic Detail title

It right now says Stable Models which is stupid in some cases.
Write Facts/Partial Model/Stable Model instead.

"Show more" ... Are not updated when toggling show all

Steps to reproduce

Draw a program such that a node contains more symbols that it's possible to display and the ... get's shown. Then, toggle "show all" in the settings menu.

Expected behaviour

The ... disappear if the symbols now fit.

Actual behaviour:

The ... do not disappear, although there would be enough space for the symbols now.

Make quickstart application and not what ever you have

c+p How to build your own ASP system?

import sys
from clingo.application import clingo_main, Application
from clingo.script import enable_python

enable_python()
class App(Application):
  def main(self, ctl, files):
    for path in files:
      ctl.load(path)
      if not files:
        ctl.load("-")
    ctl.ground([("base", [])])
    ctl.solve()

if __name__ == "__main__":
  clingo_main(App(), sys.argv[1:])

Program doesn't update

The program displayed is not updating sometimes

Steps to reproduce

Start viasp (viasp &)
Run any program using quickstart.py
Change the program to {r}.
Run again

Expected behaviour

graph for {r}. is shown

Actual behaviour

The graph for the previous program is shown

Maybe the program database doesn't get cleared correctly?

Change minimal example

Maybe as entry point

Should look sth like this:

import sys
import clingo

options = ["0"]

ctl = clingo.Control(options)

for path in sys.argv[1:]:
  ctl.load(path)
if not sys.argv[1:]:
  ctl.load("-")
ctl.ground([("base", [])])

with ctl.solve(yield_=True) as handle:
  for m in handle: print("Answer:\n{}".format(m))
  print(handle.get())
$ echo "{a(1..2)}." | python minimal_clingo_input_files.py
Answer:

Answer:
a(2)
Answer:
a(1)
Answer:
a(1) a(2)
SAT

AttributeError on 0.0.1

>>> ctl = viasp.Control([0])
200 OK
Registered ClingoMethodCall(name='__init__', kwargs={'arguments': [0]}, uuid=UUID('1a373d22-32cf-4b1b-893b-f5da79507956'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/miniconda3/envs/testpipy/lib/python3.7/site-packages/viasp/wrapper.py", line 70, in __init__
    super().__init__(*args, **kwargs)
  File "/opt/miniconda3/envs/testpipy/lib/python3.7/site-packages/clingo/control.py", line 157, in __init__
    c_mem.append(_ffi.new("char[]", arg.encode()))
AttributeError: 'int' object has no attribute 'encode'

Criss-crossing edges

Steps to reproduce

Set program to

a(1). a(2).
b(X) :- a(X).
{c(X)} :- b(X).
{d(X)} :- c(X).
{e(X)} :- d(X).

#Expected behaviour
The edges don't overlap

Actual behaviour

Some edges overlap unnecessarily

Facts don't get redrawn when changing backend url

Steps to reproduce

  1. Start the frontend with a bad backend url.
  2. Set the backend url to the correct one.

Expected behaviour

Everything gets redrawn.

Actual behaviour

Everything gets redrawn but the fact node.

Search bar + suggestions still look off.

  • Make the search bar wider
  • Active filters should be same width as search bar with out the useless padding
  • Suggestions should either have some container or not be wider than search bar

image

Signature filter

Signature filter applies for each model.

do not filter results in general

Update on Current State of Clingo

Hi @glaserL,

a lot has happened to viASP since you last worked on it and I want to give you a little update. I also have a request in regards to publishing.

I recently finished my master's thesis on the project where I added features and made it easier to use overall. At this stage, Javier and I decided to move the repository (my fork of viasp) to the potassco organization. You can try out the current version on binder: https://mybinder.org/v2/gh/potassco/viasp/main?filepath=examples%2FIntroduction%20to%20viASP.ipynb.

Now we would like to publish the current version to pypi. Since you are the owner of the three viasp packages (viasp, viasp-dash, viasp-backend) on pypi.org, there are a couple of options on how to update those from the new repository location:

  • You add me as a collaborator (owner) on the pypi project page, so I can manage the publishing (this option would be the least involved for you)
  • You send me the API tokens, so that I can define the secrets in the github repo
  • I ask Javier to give you the permissions to administer the potassco repo and you set the API secrets yourself

You can choose any of these three ways and I will let you know any infos you need to finish it.

I hope to hear back from you soon!

Best,
Stephan

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.