Giter Site home page Giter Site logo

ibmstreams / pypi.streamsx.standard Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 4.0 702 KB

Python packages for IBM Streams Standard Toolkit

Home Page: https://ibmstreams.github.io/pypi.streamsx.standard/

License: Apache License 2.0

Python 99.31% Shell 0.69%
ibm-streams pypi python python-package stream-processing

pypi.streamsx.standard's People

Contributors

chanskw avatar ddebrunner avatar natashadsilva avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pypi.streamsx.standard's Issues

FileSink: error with tuples_per_file

streamsx.standard.tests.test_files/test_filename_from_stream.spl:35:7: CDISP9150E ERROR: The type of the tuplesPerFile parameter of the FileSink operator is int32. The expected type is: uint32/uint64.

Check parameters and test coverage

     [echo] Name                              Stmts   Miss  Cover
     [echo] -----------------------------------------------------
     [echo] streamsx/standard/__init__.py        42      0   100%
     [echo] streamsx/standard/_version.py         1      0   100%
     [echo] streamsx/standard/files.py          441     37    92%
     [echo] streamsx/standard/relational.py     118     28    76%
     [echo] streamsx/standard/utility.py        166     11    93%
     [echo] -----------------------------------------------------
     [echo] TOTAL                               768     76    90%
     [echo] ----------------------------------------------------------------------
     [echo] Ran 28 tests in 687.794s
     [echo] 
     [echo] OK

Doc issue: incomplete note in streamsx.standard.utility.union

Documentation of Note block in streamsx.standard.utility.union is incomplete
This method differs from Stream.union in that

"make html" raises the following warning:

streamsx.standard/streamsx/standard/utility.py:docstring of streamsx.standard.utility.union:15: WARNING: Explicit markup ends without a blank line; unexpected unindent.

How is `streamsx.standard.files.csv_reader` meant to be used?

The file parameter is hardcoded, but for that to work the path to the file on the Streams host must be known at job submission time.

This code:

import streamsx.ec
from  streamsx.standard.files import csv_reader

from streamsx.topology.topology import Topology
import streamsx.topology.context

csv_file_name = "next_bus_avg_max_speed.csv"    

csvtopo = Topology()

csv_schema = 'tuple<int64 last_seen, float32 maxSpeed, rstring id, float32 avgSpeed>'
file = "etc/" + csv_file_name
readings = csv_reader(csvtopo, file="/Users/natashad/Downloads/next_bus_avg_max_speed.csv", schema=csv_schema, header=True, name="ReadCSV")
readings.print()

Throws a FileNotFound error.

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.