spells-mtg 0.11.4__tar.gz → 0.11.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of spells-mtg might be problematic. Click here for more details.

Files changed (25) hide show
  1. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/PKG-INFO +1 -1
  2. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/pyproject.toml +1 -1
  3. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/card_data_files.py +13 -15
  4. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/LICENSE +0 -0
  5. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/README.md +0 -0
  6. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/.ruff_cache/.gitignore +0 -0
  7. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/.ruff_cache/0.8.6/17785301476771359756 +0 -0
  8. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/.ruff_cache/CACHEDIR.TAG +0 -0
  9. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/__init__.py +0 -0
  10. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/cache.py +0 -0
  11. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/cards.py +0 -0
  12. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/columns.py +0 -0
  13. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/config.py +0 -0
  14. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/draft_data.py +0 -0
  15. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/enums.py +0 -0
  16. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/extension.py +0 -0
  17. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/external.py +0 -0
  18. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/filter.py +0 -0
  19. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/log.py +0 -0
  20. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/manifest.py +0 -0
  21. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/schema.py +0 -0
  22. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/spells/utils.py +0 -0
  23. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/tests/__init__.py +0 -0
  24. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/tests/filter_test.py +0 -0
  25. {spells_mtg-0.11.4 → spells_mtg-0.11.5}/tests/utils_test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spells-mtg
3
- Version: 0.11.4
3
+ Version: 0.11.5
4
4
  Summary: analaysis of 17Lands.com public datasets
5
5
  Author-Email: Joel Barnes <oelarnes@gmail.com>
6
6
  License: MIT
@@ -11,7 +11,7 @@ dependencies = [
11
11
  ]
12
12
  requires-python = ">=3.11"
13
13
  readme = "README.md"
14
- version = "0.11.4"
14
+ version = "0.11.5"
15
15
 
16
16
  [project.license]
17
17
  text = "MIT"
@@ -28,7 +28,6 @@ ratings_col_defs = {
28
28
  ColName.NAME: pl.col("name").cast(pl.String),
29
29
  ColName.COLOR: pl.col("color").cast(pl.String),
30
30
  ColName.RARITY: pl.col("rarity").cast(pl.String),
31
- ColName.CARD_TYPE: pl.col("types").cast(pl.String),
32
31
  ColName.IMAGE_URL: pl.col("url").cast(pl.String),
33
32
  ColName.NUM_SEEN: pl.col("seen_count").cast(pl.Int64),
34
33
  ColName.LAST_SEEN: pl.col("seen_count") * pl.col("avg_seen").cast(pl.Float64),
@@ -176,17 +175,16 @@ def base_ratings_df(
176
175
  (pl.lit(deck_color) if deck_color != "any" else pl.lit(None)).alias(
177
176
  ColName.MAIN_COLORS
178
177
  ).cast(pl.String)
179
- ))
180
- df = pl.concat(concat_list)
181
-
182
- return df.select(
183
- [
184
- pl.lit(set_code).alias(ColName.EXPANSION),
185
- pl.lit(format).alias(ColName.EVENT_TYPE),
186
- (pl.lit("Top") if player_cohort == "top" else pl.lit(None)).alias(
187
- ColName.PLAYER_COHORT
188
- ).cast(pl.String),
189
- ColName.MAIN_COLORS,
190
- *[val.alias(key) for key, val in ratings_col_defs.items()],
191
- ]
192
- )
178
+ ).select(
179
+ [
180
+ pl.lit(set_code).alias(ColName.EXPANSION),
181
+ pl.lit(format).alias(ColName.EVENT_TYPE),
182
+ (pl.lit("Top") if player_cohort == "top" else pl.lit(None)).alias(
183
+ ColName.PLAYER_COHORT
184
+ ).cast(pl.String),
185
+ ColName.MAIN_COLORS,
186
+ *[val.alias(key) for key, val in ratings_col_defs.items()],
187
+ ]
188
+ ))
189
+
190
+ return pl.concat(concat_list)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes