🚀 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_namesdecorator: 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 codeby introducing theoutput_namesdecorator for explicitly defining output variable names in user-defined functions.
🔗 Links
📝 Upgrade Notes
- For installing, refer to the installation instructions.
If you encounter any issues, please open an issue or join the discussion.