Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic handling of relationships between objects #1266

Merged
merged 11 commits into from
May 23, 2023

Conversation

apdavison
Copy link
Member

another attempt to implement #125 (replaces #588)

# but this will need substantial changes to container handling
self._segments = ObjectList(Segment, parent=self)
self._groups = ObjectList(Group, parent=self)
self._regionsofinterest = ObjectList(RegionOfInterest, parent=self)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should regions of interest really be linked to a block and not a handled on the same level as a view?

@@ -28,7 +28,6 @@ def get_rect_height(name, obj):
nlines = 1.5
nlines += len(getattr(obj, '_all_attrs', []))
nlines += len(getattr(obj, '_single_child_objects', []))
nlines += len(getattr(obj, '_multi_child_objects', []))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script is currently not running due to some imports not being present. I think it would help to also include the generated diagram to understand the structural changes here.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@apdavison : do you plan to tedisouly also fix the diagram generator or will we fix this later ?

self._epochs = ObjectList(Epoch)
self._channelviews = ObjectList(ChannelView)
self._imagesequences = ObjectList(ImageSequence)
self._segments = ObjectList(Segment) # to remove?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I vote for the removal of segments here to simplify the neo structure.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am OK with this. This can be done outside the PR no ?

@samuelgarcia
Copy link
Contributor

samuelgarcia commented May 17, 2023

Hi.
What is the status of this ?
On my side it was ready to merge since last week.
@JuliaSprenger ?
I have the feeling that everything is OK except the neo structure itself.

@JuliaSprenger
Copy link
Member

Yes, we from my side we can merge this and fix the neo structure in another PR similar to #1026

@JuliaSprenger JuliaSprenger merged commit 29d73f6 into NeuralEnsemble:master May 23, 2023
@apdavison apdavison deleted the autorel3 branch July 27, 2023 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants