equinor / equinor/webviz-subsurface

Move data load out of container `__init__`?

Open
#80 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement 🚀 question
Dominant language
Python
Stars
62
Forks
62
Avg merge
5d 7h
Merged PRs (30d)
3

Description

For some of the containers, data is loaded already in the __init__ section. Should this be moved to somewhere else in order to do more "lazy loading" of the data when having a "live app" (i.e. not portable)?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the container classes whose init methods load data and compare how they are used by a live, non-portable app. Determine where that loading should occur instead, then confirm that data is deferred until needed without breaking existing container behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.