spells-mtg 0.10.1__py3-none-any.whl → 0.10.2__py3-none-any.whl

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.

spells/draft_data.py CHANGED
@@ -407,7 +407,11 @@ def _base_agg_df(
407
407
  for c in cols_for_view
408
408
  if m.col_def_map[c].col_type in (ColType.PICK_SUM, ColType.GAME_SUM)
409
409
  )
410
- if sum_cols:
410
+ name_sum_cols = tuple(
411
+ c for c in cols_for_view if m.col_def_map[c].col_type == ColType.NAME_SUM
412
+ )
413
+
414
+ if sum_cols or not name_sum_cols:
411
415
  # manifest will verify that GAME_SUM manifests do not use NAME grouping
412
416
  name_col_tuple = (
413
417
  (pl.col(ColName.PICK).alias(ColName.NAME),) if is_name_gb else ()
@@ -418,9 +422,6 @@ def _base_agg_df(
418
422
  grouped = sum_col_df.group_by(group_by) if group_by else sum_col_df
419
423
  join_dfs.append(grouped.sum().collect(streaming=use_streaming))
420
424
 
421
- name_sum_cols = tuple(
422
- c for c in cols_for_view if m.col_def_map[c].col_type == ColType.NAME_SUM
423
- )
424
425
  for col in name_sum_cols:
425
426
  names = get_names(set_code)
426
427
  expr = tuple(pl.col(f"{col}_{name}").alias(name) for name in names)
spells/manifest.py CHANGED
@@ -208,7 +208,7 @@ def create(
208
208
  else:
209
209
  needed_views = needed_views.union({View.GAME, View.DRAFT})
210
210
 
211
- view_cols = {v: view_cols[v] for v in needed_views}
211
+ view_cols = {v: view_cols.get(v, frozenset({ColName.PICK})) for v in needed_views}
212
212
 
213
213
  return Manifest(
214
214
  columns=cols,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: spells-mtg
3
- Version: 0.10.1
3
+ Version: 0.10.2
4
4
  Summary: analaysis of 17Lands.com public datasets
5
5
  Author-Email: Joel Barnes <oelarnes@gmail.com>
6
6
  License: MIT
@@ -3,17 +3,17 @@ spells/cache.py,sha256=7XDcltmlpagK2nkhuCCcAQVyrFMYkw9Acr7iVsLs3JU,3799
3
3
  spells/cards.py,sha256=6stFPhJOzHqvQnkSv9cDeylRa_7L9Y8sOaowiZhzz6I,4174
4
4
  spells/columns.py,sha256=tQPhFpG4vOMIjV111p8DK4V-d_8634xoE-csBzou_sw,18008
5
5
  spells/config.py,sha256=_t98dc_uY3Wp3d5tsU3CJgVcWOD3wVlwMo98-tN2KRY,213
6
- spells/draft_data.py,sha256=FsgY2SvaWVZABLD6SeWDHBSZZ0F8lIgye_wFe897Dow,19624
6
+ spells/draft_data.py,sha256=PpD52SBOzjGstPCP8q65J0KQ61sPOMERF_PTO9oHczo,19646
7
7
  spells/enums.py,sha256=MwJ9694AVoaKE22WlFjzHPcRfrU0DKI2_mrWC6_YjhE,4931
8
8
  spells/extension.py,sha256=DVzIedggeGfkD6BD5g-dko9l9BoPgmXWvcQ3NWdEG0U,6991
9
9
  spells/external.py,sha256=XZpZ0mn8_BmiF76xEiu2KblZ-dwOxmbs6vrDftl2XbI,11846
10
10
  spells/filter.py,sha256=J-YTOOAzOQpvIX29tviYL04RVoOUlfsbjBXoQBDCEdQ,3380
11
11
  spells/log.py,sha256=3avmg65hru8K9npKLvPp1wWWxq-hoEYDUCbxqhPkKUw,2175
12
- spells/manifest.py,sha256=dOUmj2uZZ17vCWpFwv7B5F6wOIWnoQdZkEB9SDKdx9M,8310
12
+ spells/manifest.py,sha256=iOmhxIVMHu_Av3nd23zGjmUwLvZ2hAM0oc1ErPzZ_oE,8341
13
13
  spells/schema.py,sha256=DbMvV8PIThJTp0Xzp_XIorlW6JhE1ud1kWRGf5SQ4_c,6406
14
14
  spells/utils.py,sha256=IO3brrXVvZla0LRTEB5v6NgGqZb_rYA46XtKBURGMNk,1944
15
- spells_mtg-0.10.1.dist-info/METADATA,sha256=u6o0Lzlz_6O-KrTLTP_ToSzo75nF4EulX5HHsz0DAAQ,47119
16
- spells_mtg-0.10.1.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
17
- spells_mtg-0.10.1.dist-info/entry_points.txt,sha256=a9Y1omdl9MdnKuIj3aOodgrp-zZII6OCdvqwgP6BFvI,63
18
- spells_mtg-0.10.1.dist-info/licenses/LICENSE,sha256=tS54XYbJSgmq5zuHhbsQGbNQLJPVgXqhF5nu2CSRMig,1068
19
- spells_mtg-0.10.1.dist-info/RECORD,,
15
+ spells_mtg-0.10.2.dist-info/METADATA,sha256=QHHCiBpsp9nnd6v0eM3USb543pkZxvTqPfoxTNmxJV8,47119
16
+ spells_mtg-0.10.2.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
17
+ spells_mtg-0.10.2.dist-info/entry_points.txt,sha256=a9Y1omdl9MdnKuIj3aOodgrp-zZII6OCdvqwgP6BFvI,63
18
+ spells_mtg-0.10.2.dist-info/licenses/LICENSE,sha256=tS54XYbJSgmq5zuHhbsQGbNQLJPVgXqhF5nu2CSRMig,1068
19
+ spells_mtg-0.10.2.dist-info/RECORD,,