Skip to content

Commit

Permalink
Merge pull request #237 from the-virtual-brain/TVB-2782
Browse files Browse the repository at this point in the history
TVB-2782. Small fixes after testing
  • Loading branch information
popaula937 authored Sep 10, 2020
2 parents a3b3aa0 + b748da7 commit 20e74d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions framework_tvb/tvb/adapters/analyzers/fcd_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ def launch(self, view_model):
f.array_data.store(cm_data)
f.connectivity.store(connectivity_gid)
f.title.store(cm_index.title)
f.gid.store(uuid.UUID(cm_index.gid))
cm_array_metadata = f.array_data.get_cached_metadata()

cm_index.array_data_min = cm_array_metadata.min
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class PrincipalComponentsIndex(DataType):
def fill_from_has_traits(self, datatype):
# type: (PrincipalComponents) -> None
super(PrincipalComponentsIndex, self).fill_from_has_traits(datatype)
self.fk_source_gid = datatype.source.gid
self.fk_source_gid = datatype.source.gid.hex

def get_extra_info(self):
labels_dict = {}
Expand Down
4 changes: 2 additions & 2 deletions framework_tvb/tvb/adapters/datatypes/db/spectral.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def fill_from_has_traits(self, datatype):
super(FourierSpectrumIndex, self).fill_from_has_traits(datatype)
self.segment_length = datatype.segment_length
self.windowing_function = datatype.windowing_function
self.frequency_step = datatype.frequency_step
self.max_frequency = datatype.max_frequency
self.frequency_step = datatype.freq_step
self.max_frequency = datatype.max_freq
self.fk_source_gid = datatype.source.gid.hex

def get_extra_info(self):
Expand Down

0 comments on commit 20e74d7

Please sign in to comment.