Skip to content

Commit

Permalink
Fix/windows tests (#45)
Browse files Browse the repository at this point in the history
* Remove nnls patch and fix scipy version (with fixed nnls)

* ✨ remove patched nnls (using fixed scipy version now)

* 💄 linting; line breaks

* 🚑 fix dtypes to ensure windows ci to pass

* 💄  linting

---------

Co-authored-by: Elmar Zander <[email protected]>
  • Loading branch information
gessulat and ezander authored Jul 29, 2024
1 parent 68fd52b commit b666ef9
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions tests/unit_tests/test_tabular_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,13 @@ def test_dataframe_reader(psm_df_6):
reader.read(), pd.DataFrame({"test": [1, 2, 3]})
)

reader = DataFrameReader.from_array(np.array([1, 2, 3], dtype=np.int32), name="test")
reader = DataFrameReader.from_array(
np.array([1, 2, 3],
dtype=np.int32), name="test"
)
pd.testing.assert_frame_equal(
reader.read(), pd.DataFrame({"test": [1, 2, 3]}, dtype=np.int32)
reader.read(),
pd.DataFrame({"test": [1, 2, 3]}, dtype=np.int32)
)


Expand All @@ -215,13 +219,13 @@ def test_column_renaming(psm_df_6):

assert (reader.read().values == orig_reader.read().values).all()
assert (
reader.read(["Pep", "protein", "T", "feature_1"]).values
== orig_reader.read([
"peptide",
"protein",
"target",
"feature_1",
]).values
reader.read(["Pep", "protein", "T", "feature_1"]).values
== orig_reader.read([
"peptide",
"protein",
"target",
"feature_1",
]).values
).all()

renamed_chunk = next(
Expand Down

0 comments on commit b666ef9

Please sign in to comment.