Skip to content
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

Replace os.path with pathlib.Path #246

Merged
merged 4 commits into from
Aug 5, 2022
Merged

Conversation

17o2
Copy link
Collaborator

@17o2 17o2 commented Oct 7, 2021

Closes #190.

@17o2 17o2 changed the base branch from master to dev October 7, 2021 21:30
@17o2 17o2 marked this pull request as ready for review October 7, 2021 21:34
@17o2 17o2 requested a review from kvid October 7, 2021 21:34
@17o2 17o2 modified the milestones: v0.3, v0.4 Oct 7, 2021
@17o2 17o2 changed the base branch from dev to feature/technical-drw October 15, 2021 13:10
@17o2 17o2 added the in latest label Oct 15, 2021
@17o2 17o2 force-pushed the feature/technical-drw branch from 293c896 to b513051 Compare October 16, 2021 19:55
Copy link
Collaborator

@kvid kvid left a comment

Choose a reason for hiding this comment

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

I also like the pathlib interface. Consider the change suggested by @laurierloi and a few other code alternatives.

@17o2 17o2 mentioned this pull request Aug 5, 2022
5 tasks
@17o2
Copy link
Collaborator Author

17o2 commented Aug 5, 2022

All comments have been addressed inside #251 or are no longer relevant after 251 is applied

@17o2 17o2 merged commit 8e59a14 into feature/technical-drw Aug 5, 2022
@17o2 17o2 deleted the feature/pathlib branch August 5, 2022 16:29
17o2 added a commit that referenced this pull request Aug 5, 2022
laurierloi pushed a commit to laurierloi/WireViz that referenced this pull request Jan 19, 2023
17o2 added a commit that referenced this pull request Jun 7, 2023
kvid pushed a commit to kvid/WireViz that referenced this pull request Aug 27, 2023
kvid pushed a commit to kvid/WireViz that referenced this pull request Sep 12, 2023
17o2 added a commit that referenced this pull request Mar 1, 2025
Refactor connector node generation

Further refactor connector node generation

Rebuild demos

Generate gauge string inside Cable object

WIP: refactor cable node generation

Implement HTML indentation

WIP

More WIP

Remove old stuff, slightly simplify code

Outsource `gv_pin_table()`, simplify padding

Add TODOs

Outsource `set_dot_basics()` and `apply_dot_tweaks()`

Make setting HTML tag attributes easier through `kwargs`

Fix and simplify bgcolor logic

Reactivate cable edge generation

Outsource `gv_edge_wire()`

Make connecting things more object-oriented

Alphabetize HTML tags, improve bgcolor rendering

Make mates object-oriented

Run `autoflake -i`

Run `autoflake -i --remove-all-unused-imports`

Streamline assignment of ports to simple connectors

Implement color objects

Use color objects in WireViz

Re-sort `wv_colors.py`

Make green color darker

Break longer lines not caught by `black`

because they were unbroken strings or comments

Make variable name more expressive

Apply dot tweaks last

Remove unused line

Improve subclassing of components, prepare for BOM refactoring

Clean up

Include nested additional components in BOM

do not add autogenerated designators to BOM

Improve BOM generation (TODO: wires from a bundle)

Prepare `harness.populate_bom()`

Change `description` to `type` in additional BOM item YAML

Define CLI epilog str in single statement

Rename modules, adjust imports, move `build_examples.py`

Restructure and update `.gitignore`

Clarify `wireviz.parse()` input types

Implement BOM population (missing: qty multipliers)

Make `pin_objects` and `wire_objects` dictionaries

Compute qty's of additional components (WIP)

Add qty test file

Adapt `tutorial08.yml` (remove `unit` field)

Add `tabulate` to dependency list (might remove later if not needed)

Sort BOM by category, assign BOM IDs

Rename `Options.color_mode` to `.color_output_mod` for consistency

Change BOM output file extension from `.bom.tsv` to `.tsv`

Implement BOM bubbles

Stop recursive nesting of additional components

Add BOM bubble to additional component list (WIP)

Fix gauge conversion

Fix line breaks in code

Optimize BOM bubble geometry

Implement pin color output

Small issue: GraphViz warning
```
Warning: table size too small for content
```

Add some test files to `tests/` directory

Update test files

Allow multiple colors for components

Implement multiple colors for components, improve multicolor table rendering

Fix color cell implementation

Fix node background color rendering

Add test file for node and title bgcolors

WIP: BOM modes

Add TODO for empty connector pin tables

Comment out BOM modes (WIP) and BOM bubbles

Resume work on BOM

Include part number info in BOM table

Fix BOM output in TSV and HTML

Add bundles' wires' part number info to BOM

Add TODOs

Implement bundle part number rendering

Improve conductor table rendering

Fix additional component BOM table layout

Disable CLI BOM output

Add suggestions from #246

Add suggestions from #186

Add .vscode/ to .gitignore

Fix PyLance problems

Update interim version number

Fix zero-size cell for simple connectors without type

Implement additional parameters dict for components

Implement note for additional components

Thicken additional component table

Add placeholder for add.comp. PN info

Apply black
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.

[internal] Replaceos.path with Pathlib
3 participants