Giter Site home page Giter Site logo

molssi-seamm / loop_step Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 5.07 MB

A SEAMM plug-in which provides loops in flowcharts.

License: BSD 3-Clause "New" or "Revised" License

Makefile 2.10% Python 97.01% Shell 0.89%
computational-chemistry computational-materials-science molssi molssi-seamm

loop_step's People

Contributors

dependabot[bot] avatar paulsaxe avatar seamm avatar

Stargazers

 avatar

Watchers

 avatar  avatar

loop_step's Issues

Initial Update

The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.

Implement a "For" loop

  • Loop Step version: 0.01
  • Python version: 3.7
  • Operating System: MacOS

Description

Implement a straightforward loop similar to a FORTRAN do-loop, of C for-loop, with an initialization, test and increment, i.e. for i=5; i<10; ++i or do i=5,10,1

Crash in description of loop steps

  • Loop Step version:
  • Python version: 3.7
  • Operating System: MacOS

Description

Running a simple flowchart -- attached below -- and the step crashed with an error.

What I Did

Traceback (most recent call last):
  File "/Users/psaxe/anaconda3/envs/seamm-dev/bin/run_flowchart", line 11, in <module>
    load_entry_point('seamm==0.2.0', 'console_scripts', 'run_flowchart')()
  File "/Users/psaxe/anaconda3/envs/seamm-dev/lib/python3.7/site-packages/seamm-0.2.0-py3.7.egg/seamm/run_flowchart.py", line 130, in run
    exec.run(root=wdir)
  File "/Users/psaxe/anaconda3/envs/seamm-dev/lib/python3.7/site-packages/seamm-0.2.0-py3.7.egg/seamm/exec_flowchart.py", line 58, in run
    next_node = next_node.describe()
  File "/Users/psaxe/anaconda3/envs/seamm-dev/lib/python3.7/site-packages/loop_step-0.3.0+0.g9dc96d1.dirty-py3.7.egg/loop_step/loop.py", line 67, in describe
    text = self.description(P)
  File "/Users/psaxe/anaconda3/envs/seamm-dev/lib/python3.7/site-packages/loop_step-0.3.0+0.g9dc96d1.dirty-py3.7.egg/loop_step/loop.py", line 53, in description
    next_node += next_node.describe(indent)
TypeError: unsupported operand type(s) for +=: 'FromSMILES' and 'MOPAC'

Flowchart (remove .txt extension) new_hc_mopac.flow.txt

Data file used by the flowchart (again remove .txt extension): hydrocarbons.csv-.txt

Skip rows meeting given criteria

  • Loop Step version: 2021.6.3
  • Python version: 3.9
  • Operating System: MacOS

Description

It would be very useful, particularly when iterating over rows of a table, to skip rows that meet given criteria. This would allow e.g. only calculating new rows.

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.