sdss / sdss/tree

Support option for multiple trees in same python session

Open
#142 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Support option for multiple trees in same python session. Allow new trees without overriding the local os.environ. Currently tree first checks the TREE_VER envvar and checks local environment variables, due to module constraints.

the tree/tree.py file needs some TLC.

  • Want the tree python object to contain the envvar and path definitions for use programmatically. Add support to use them. e.g. sdss_access needs updates. this won't work for pipelines or other software generally
  • Want to (optionally) update the os.environ with the new variables. Retain original usage.

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 in tree/tree.py by tracing how TREE_VER and local environment variables are read when a tree is created. In a Python session, verify that multiple tree objects can retain their own environment and path definitions, and that updating os.environ is optional while existing usage remains supported. Done means the requested programmatic access and multiple-tree behavior work without overriding the local environment by default.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.