spells-mtg 0.11.5__tar.gz → 0.11.6__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.5 → spells_mtg-0.11.6}/PKG-INFO +1 -1
  2. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/pyproject.toml +1 -1
  3. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/card_data_files.py +24 -19
  4. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/LICENSE +0 -0
  5. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/README.md +0 -0
  6. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/.ruff_cache/.gitignore +0 -0
  7. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/.ruff_cache/0.8.6/17785301476771359756 +0 -0
  8. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/.ruff_cache/CACHEDIR.TAG +0 -0
  9. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/__init__.py +0 -0
  10. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/cache.py +0 -0
  11. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/cards.py +0 -0
  12. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/columns.py +0 -0
  13. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/config.py +0 -0
  14. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/draft_data.py +0 -0
  15. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/enums.py +0 -0
  16. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/extension.py +0 -0
  17. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/external.py +0 -0
  18. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/filter.py +0 -0
  19. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/log.py +0 -0
  20. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/manifest.py +0 -0
  21. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/schema.py +0 -0
  22. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/spells/utils.py +0 -0
  23. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/tests/__init__.py +0 -0
  24. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/tests/filter_test.py +0 -0
  25. {spells_mtg-0.11.5 → spells_mtg-0.11.6}/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.5
3
+ Version: 0.11.6
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.5"
14
+ version = "0.11.6"
15
15
 
16
16
  [project.license]
17
17
  text = "MIT"
@@ -40,7 +40,8 @@ ratings_col_defs = {
40
40
  ColName.WON_OPENING_HAND: pl.col("opening_hand_game_count")
41
41
  * pl.col("opening_hand_win_rate").cast(pl.Float64),
42
42
  ColName.DRAWN: pl.col("drawn_game_count").cast(pl.Int64),
43
- ColName.WON_DRAWN: pl.col("drawn_win_rate") * pl.col("drawn_game_count").cast(pl.Float64),
43
+ ColName.WON_DRAWN: pl.col("drawn_win_rate")
44
+ * pl.col("drawn_game_count").cast(pl.Float64),
44
45
  ColName.NUM_GIH: pl.col("ever_drawn_game_count").cast(pl.Int64),
45
46
  ColName.NUM_GIH_WON: pl.col("ever_drawn_game_count")
46
47
  * pl.col("ever_drawn_win_rate").cast(pl.Float64),
@@ -106,9 +107,9 @@ def deck_color_df(
106
107
  [
107
108
  pl.lit(set_code).alias(ColName.EXPANSION),
108
109
  pl.lit(format).alias(ColName.EVENT_TYPE),
109
- (pl.lit("Top") if player_cohort == "top" else pl.lit(None)).alias(
110
- ColName.PLAYER_COHORT
111
- ).cast(pl.String),
110
+ (pl.lit("Top") if player_cohort == "top" else pl.lit(None))
111
+ .alias(ColName.PLAYER_COHORT)
112
+ .cast(pl.String),
112
113
  *[val.alias(key) for key, val in deck_color_col_defs.items()],
113
114
  ]
114
115
  )
@@ -171,20 +172,24 @@ def base_ratings_df(
171
172
  out=ratings_file_path,
172
173
  )
173
174
 
174
- concat_list.append(pl.read_json(ratings_file_path).with_columns(
175
- (pl.lit(deck_color) if deck_color != "any" else pl.lit(None)).alias(
176
- ColName.MAIN_COLORS
177
- ).cast(pl.String)
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
- ))
175
+ concat_list.append(
176
+ pl.read_json(ratings_file_path, infer_schema_length=500)
177
+ .with_columns(
178
+ (pl.lit(deck_color) if deck_color != "any" else pl.lit(None))
179
+ .alias(ColName.MAIN_COLORS)
180
+ .cast(pl.String)
181
+ )
182
+ .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))
187
+ .alias(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
+ )
193
+ )
189
194
 
190
195
  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