Skip to content

Alpha#36

Open
FarzanaAkhi wants to merge 30 commits into
CSHVienna:alphafrom
FarzanaAkhi:alpha
Open

Alpha#36
FarzanaAkhi wants to merge 30 commits into
CSHVienna:alphafrom
FarzanaAkhi:alpha

Conversation

@FarzanaAkhi
Copy link
Copy Markdown

@FarzanaAkhi FarzanaAkhi commented May 1, 2026

  • .github/workflows/documentation.yaml : We updated this workflow to use the docs setup and simplify when it runs, making documentation builds cleaner and easier to maintain.
  • .github/workflows/documentation.yaml : We updated this workflow to support multiple Python versions and separate linting and testing, making the CI more reliable and consistent.
  • .gitignore : We updated the .gitignore to keep the repository clean and avoiding unnecessary files in version control.
  • examples/notebooks/ : We changed the notebook to make it compatible with the alpha version.
  • netin/viz/handlers.py : We renamed the variable to fix a bug.
  • pyproject.toml : We restructured the pyproject.toml , to centralize dependencies, testing, and configuration settings, making the project easier to manage, install, and maintain consistently.
  • tests/: We updated and moved the relevant test files outside the base folder and updated their imports, making the project structure cleaner and avoiding import issues.

FarzanaAkhi and others added 29 commits January 15, 2026 13:47
* add the new file

* Default dependencies and optional dependencies: pyproject.toml

* Default dependencies and optional dependencies: pyproject.toml

* Remove legacy setup.py and setup.cfg

* Default dependencies and optional dependencies: pyproject.toml

* Add missing dependency

* Updated file: tests

* Fix test_pa for updated netin API (n, k, h_mm) and dependency typo

* Add seaborn~=0.12.2 to dependencies

* Add .venv* pattern to gitignore

* deleted undirected_py

* deleted .venv/

* deleted pyproject_py

* removed duplicate classifiers,removed mentioned license

* added packages

* added some details for instance project description, maintainer, keywords, packages etc.

* removed requirement folder

---------

Co-authored-by: Diego Baptista Theuerkauf <dabtheuerkauf@gmail.com>
* Update undirected notebook to use new model API

Rename parameters to match current API:
- N -> n (number of nodes)
- m -> k (number of edges per new node)
- h_m -> h_mm (minority homophily)
- h_M -> h_MM (majority homophily)

* Update directed and inference notebooks to use new model API

- directed.ipynb: N -> n for DPAModel, DHModel, DPAHModel
- inference.ipynb: N -> n for PAHModel
- undirected.ipynb: include notebook outputs
Moved all existing tests into a new directory " tests" and completed tox configuration.
Add nbmake support for notebook testing
* Fix line of installation

* Fix target branch for GA and saved file

* removed -r requirements.txt and used pip install -e.[test]

* removed -r requirements.txt and used pip install -e.[test and pip install sphinx

* removed -r requirements.txt and used pip install -e.[test], pip install sphinx numpydoc

* removed extra dependencies and modified netin dependencies

* removed version in sphinx

* removed sphinx sutobuild version

* removed versions from all dependencies

* Stop tracking evidences.json notebook output (already in .gitignore)

* Untrack pdfs

* Add pdfs to gitignore

* Stop building docs from any branch

---------

Co-authored-by: Diego Baptista Theuerkauf <dabtheuerkauf@gmail.com>
@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@FarzanaAkhi FarzanaAkhi marked this pull request as ready for review May 6, 2026 07:58
@FarzanaAkhi FarzanaAkhi marked this pull request as draft May 6, 2026 08:08
@FarzanaAkhi FarzanaAkhi marked this pull request as ready for review May 6, 2026 08:17
@diegoabt diegoabt requested a review from mannbach May 6, 2026 08:29
Copy link
Copy Markdown
Contributor

@mannbach mannbach left a comment

Choose a reason for hiding this comment

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

Thanks for the great work! Most things that I commented are straightforward fixes.

One additional thing: could you please clear the Jupyter notebook outputs in the commits? Otherwise, the git diffs get cluttered with non-code changes (metadata, figures btyecode, console outputs).

Once these things are done we can merge the changes :)

publish_branch: documentation
destination_dir: / # Root folder for stable version

- name: Deploy alpha documentation
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Removing this branch will only compile a single documentation. If we push to alpha, it might overwrite the default documentation. I would add it again until we finally merge alpha into main.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let me know if I'm missing something :)

Comment thread netin/graphs/graph.py

from .node_vector import NodeVector
from .categorical_node_vector import CategoricalNodeVector
from ..graphs.node_vector import NodeVector
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we remove this? The node_vector.py script lives next to graphs.py, no?

Comment thread netin/viz/handlers.py
for s, t in edges])
nx.draw_networkx_edges(
g, pos, ax=ax,
nx_graph, pos, ax=ax,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice catch!

Comment thread pyproject.toml

name = "netin"
description = "Python package to study inequalities in social networks"
version = "1.0.1"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i'd update the version to the alpha version 2.0.0a2. As soon as we merge into main, we can then set 2.0.0.

Comment thread pyproject.toml
authors = [
{ name = "Fariba Karimi", email = "karimi@csh.ac.at" },
{ name = "Lisette Espín-Noboa", email = "espin@csh.ac.at" },
{ name = "Jan Bachmann", email = "bachmann@csh.ac.at" },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add yourselves!!!

Comment thread pyproject.toml
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we remove the Python version or add all the newly supported versions?

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.

3 participants