Skip to content

1. Linting of core/serialization.py. 2. ZERO_INDEX and NAME_EQUALS_VALUE coord directories working. 3. Several automatic linting fixes in 4 additional files #173

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

james-isbister
Copy link
Collaborator

  • core/serialization.py all linting fixes
  • ZERO_INDEX and NAME_EQUALS_VALUE coord directories working
  • Remaining automatic linting in simulations.py, circuit_extraction.py, morphology_metrics.py

…LUE coord directories working. 3. Several automatic linting fixes in 4 additional files
@james-isbister james-isbister requested a review from chr-pok May 20, 2025 10:08
Copy link
Collaborator

@chr-pok chr-pok left a comment

Choose a reason for hiding this comment

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

ZERO_INDEX and VALUE options are working fine (again), thanks for fixing it!

However, I noticed that de-serialization is broken now.

Also, just wondering how to actually access the full paths of the individual instances of the grid scan? I tried grid_scan.coordinate_instances()[0].coordinate_output_root but got PosixPath('.'), not sure if this is intended?

data = json.load(file)
return deserialize_obi_object_from_json_data(data)
def deserialize_obi_object_from_json_file(json_path: Path) -> obi.OBIBaseModel:
json_dict = json.load(json_path)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Deserialization is broken, I think you need to add back the with open ... code:

Suggested change
json_dict = json.load(json_path)
with open(json_path) as file:
json_dict = json.load(file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants