Giter Club home page Giter Club logo

demos's People

Contributors

aclarkdata avatar cammellos avatar danlessa avatar griffgreen avatar jeff-emmett avatar jejodesty avatar joraojr avatar jzaki avatar markusbkoch avatar marthendalnunes avatar matttyb80 avatar mzargham avatar naokiakazawa avatar pkretzschmar avatar sembrestels avatar stefenon avatar tylerdmace avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

demos's Issues

Tutorials Outdated

@rogervs
Tutorials are outdated, so sample code no longer works:

In General:
https://github.com/cadCAD-org/demos/tree/master/tutorials/robots_and_marbles
configs files are now created differently using:

experiment = Experiment()
configs = experiment.configs (not importing from library)

(and not imported as described in Tutorial)

In Tutorial 6:
https://github.com/cadCAD-org/demos/blob/master/tutorials/robots_and_marbles/robot-marbles-part-6/robot-marbles-part-6.ipynb

sim_config is no longer changed through
experiment.append_configs()

and the last execution of plotting multiple simulations doesn't work, because NaNs are created before a .max() function

An update of these issues would be helpful.
Thank you so much

Robot and Marbles Tutorial in the 'cadCAD-org/demos' repo

pip install cadCAD and verify that the version is 0.4.17
to force the version do:
pip install cadCAD == 0.4.17

to check the version do:
pip freeze

Download the last version of the robot and marbles tutorials folder found here:
https://github.com/cadCAD-org/cadCAD/tree/os_release/tutorials

Download a cadCAD notebook that runs in version 0.4.xx such as:
https://github.com/DAOresearch/credcastle/blob/master/credcastle-2.ipynb

Check that the configuration objects are valid and make changes if necessary to get the tutorials to run; documentation can be found here: https://github.com/cadCAD-org/cadCAD/blob/master/documentation/Simulation_Execution.md

here is an example:

from cadCAD.engine import ExecutionMode, ExecutionContext
exec_mode = ExecutionMode()
local_mode_ctx = ExecutionContext(context=exec_mode.local_mode)

from cadCAD.engine import Executor
from cadCAD import configs
simulation = Executor(exec_context=local_mode_ctx, configs=configs)

append_configs(
    initial_state=initial_conditions, #dict containing variable names and initial values
    partial_state_update_blocks=partial_state_update_blocks, #dict containing state update functions
    sim_configs=simulation_parameters #dict containing simulation parameters
)

raw_system_events, tensor_field, sessions = simulation.execute()
simulation_result = pd.DataFrame(raw_system_events)

one import change to note is to make sure to update the block of code that called the cadCAD engine to match the new 3 output format.

Work through the robot and marbles tutorials 1 through 6 and make sure they run. Once modified and verified as running in cadCAD 0.4.17 make a pull request to merge them into the demos repo:

cadCAD-org/demos/tutorials/robot-marbles/...

Can't execute google colab

I wasn't able to execute demos both localy and in google colab.
In google colab it gives me the error.
image

No requirements file

I can't seem to find a requirements file, but the old tutorials repo had one.

Update Robot and Marbles to run in Google Colab

(previously cadCAD-org/cadCAD#86)

Update all the robot and marbles tutorials so that they immediately run in Google Colab from a URL like https://colab.research.google.com/github/BlockScience/cadCAD/blob/master/tutorials/robot-marbles-part-1/robot-marbles-part-1.ipynb

This would require adding a cell in the notebook that pip installs cadCAD

%%capture #avoid printing the output of pip install
!pip install cadCAD

Add direct links to the top of every notebook and to the README

The link is broken.

The link to the video folder is broken.

Check out the videos folder for detailed walkthroughs of each one of the tutorials.

This is in the Robot and Marbles Tutorial Series section. I think it's because the video folder is not in the tutorials directory.

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.