Skip to content

Commit

Permalink
set finilize condition to avoid None statebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Iara Ota committed Sep 9, 2024
1 parent 62276a5 commit 83ba19f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gwsumm/tabs/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,12 @@ def finalize_states(self, config=ConfigParser(), segdb_error='raise',
except ValueError:
allstate = generate_all_state(self.start, self.end)
allstate.fetch(config=config, segdb_error=segdb_error, **kwargs)
for state in self.states + [self.statebar]:
for state in self.states:
state.fetch(config=config, segdb_error=segdb_error, **kwargs)
# finilize statebar
if self.statebar:
self.statebar.fetch(config=config, segdb_error=segdb_error, **kwargs)


def process(self, config=ConfigParser(), nproc=1, **stateargs):
"""Process data for this tab
Expand Down

0 comments on commit 83ba19f

Please sign in to comment.