You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, this same JSON cannot initialize a Graph object:
Graph(nodes=j)
>ValueError: When initializing the FrameSamplingFilter, one of the 'every', 'hertz', or 'top_n' must be specified.
This is because the JSON does not specify the arguments that were originally passed into FrameSamplingFilter.
The reason I'm asking is I'm trying to implement the ability to extract Graphs in Neuroscout (current we only do one extractor at a time, and I have my own JSON notation for specifying arguments to Extractors).
I think it would make more sense to exploit the fact that pliers already has a JSON format for specifying sequences of extractors, and simply load the graph from JSON and transform the stimuli.
Is this a bug or am I missing something?
The text was updated successfully, but these errors were encountered:
I think the issue then is more than to_json doesn't save arguments, which possibly it doesn't because it might be too explicit, but then it leads to this weird asymetry
adelavega
changed the title
how to specifiy arguments for extractors in Graph json
graph to_json doesn't save enough arguments to reload Transformer with required arguments
May 7, 2020
Here's a simple example of a Pliers Graph
and it outputs this JSON:
However, this same JSON cannot initialize a Graph object:
This is because the JSON does not specify the arguments that were originally passed into
FrameSamplingFilter
.The reason I'm asking is I'm trying to implement the ability to extract Graphs in Neuroscout (current we only do one extractor at a time, and I have my own JSON notation for specifying arguments to Extractors).
I think it would make more sense to exploit the fact that pliers already has a JSON format for specifying sequences of extractors, and simply load the graph from JSON and transform the stimuli.
Is this a bug or am I missing something?
The text was updated successfully, but these errors were encountered: