Skip to content

Release v1.2.0

Latest

Choose a tag to compare

@dominiktraxl dominiktraxl released this 01 Jul 21:49
· 4 commits to master since this release
3a829cb

🚀 DeepGraph Release Notes

This release introduces a new decorator, output_names, designed for use with user-defined connector and selector functions. If you've ever encountered an OSError: could not get source code using either create_edges or create_edges_ft, this release addresses that issue. The output_names decorator allows you to explicitly define the names of the output variables returned by these functions, avoiding the need to read source code.

The public API remains unchanged. This release introduces new functionality without affecting existing behavior.


Added

  • deepgraph.output_names decorator: A new decorator to explicitly define the output variable names of connector or selector functions. This is necessary when the source code of the function is not available at runtime. The decorator attaches the specified output names to the decorated function via the _output_names attribute.

    Example:

    import deepgraph as dg
    
    @dg.output_names("dx", "dt", "v")
    def velocity(x_s, x_t, time_s, time_t):
        dx = x_t - x_s
        dt = time_t - time_s
        v = dx/dt
        return dx, dt, v

Fixed

  • Fixed OSError: could not get source code by introducing the output_names decorator for explicitly defining output variable names in user-defined functions.

🔗 Links


📝 Upgrade Notes


If you encounter any issues, please open an issue or join the discussion.