Skip to content

Commit

Permalink
Upgrade Python to 3.10; upgrade core dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bonicim committed May 2, 2024
1 parent be63722 commit c008ae8
Show file tree
Hide file tree
Showing 5 changed files with 1,020 additions and 1,069 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python: ['3.8', '3.9', '3.10', '3.11']
python: ['3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}

steps:
Expand Down
5 changes: 5 additions & 0 deletions hypernetx/classes/hyp_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ def to_dataframe(self):
non_user_defined_items = list(
set(self._items).difference(self.properties.index)
)

# skip combining df and non_user_defined_items if non_user_defined_items is empty
if not non_user_defined_items:
return df.loc[list(self._items)]

default_data = self.property_store.default_properties_df()
non_user_defined_properties = pd.DataFrame(
index=non_user_defined_items, data=default_data
Expand Down
Loading

0 comments on commit c008ae8

Please sign in to comment.