Skip to content

Commit babc581

Browse files
committed
Merge release/3.0.4
2 parents 4d6bbf4 + a97c5f5 commit babc581

27 files changed

+286
-14704
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,3 @@ Cargo.lock
1010
**/*.rs.bk
1111

1212
ipcs/
13-
14-
jupyter_notebooks/.ipynb_checkpoints/

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "s2protocol"
33
description = "A parser for Starcraft II - Replay format, exports to different target formats"
4-
version = "3.0.3"
4+
version = "3.0.4"
55
authors = ["Seb Ospina <[email protected]>"]
66
edition = "2021"
77
readme = "README.md"
@@ -19,7 +19,7 @@ clap = { version = "4.4", features = ["derive"] }
1919
serde_json = "1.0.91"
2020
serde = { version = "1.0.164", features = ["derive"] }
2121
convert_case = "0.6.0"
22-
nom-mpq = "2.0.1"
22+
nom-mpq = "2.0.2"
2323
colored = "2.0.4"
2424
arrow2 = { version = "0.17.0", features = ["io_print", "io_ipc"], optional = true }
2525
arrow2_convert = { version = "0.5.0", optional = true }

README.md

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ information it packs.
1515

1616
From the available data, analytics, visualizations and generative art can be created, for example
1717
by using
18+
- jupyter notebook in [s2-polars-data-analysis](https://github.com/sebosp/s2-polars-data-analysis)
1819
- [rerun](https://github.com/rerun-io/rerun) : See the repo [swarmy](https://github.com/sebosp/swarmy)
19-
- [lyon](https://github.com/nical/lyon) (PoC in progress in cooper)
2020
- [yew](https://github.com/yewstack/yew) [cooper](https://github.com/sebosp/cooper)
2121
- [eframe/egui](https://github.com/emilk/egui): See repo [eframes-c2](https://github.com/sebosp/eframe-sc2)
2222
- [bevyengine/bevy](https://github.com/bevyengine/bevy) can be used to see:
@@ -85,18 +85,7 @@ Total time: 33.654286961s
8585

8686
### Jupyter Notebooks
8787

88-
```
89-
$ virtualenv new venv
90-
$ source ./venv/bin/activate
91-
$ pip install -r requirements.txt
92-
$ jupyter lab
93-
```
94-
95-
Then open your browser and locate the Notebbooks, for example:
96-
97-
[Basic UnitBorn Queries](./jupyter_notebooks/Basic-UnitBorn-Queries.ipynb)
98-
![All units born](https://github.com/sebosp/s2protocol-rs/assets/873436/2307780a-bc62-4cd4-9daf-a3e622bdb5b7)
99-
![Most effective units across all games](https://github.com/sebosp/s2protocol-rs/assets/873436/cba9da20-a034-47f3-9016-bfd6db21247b)
88+
The jupyter notebook with examples on how to interact with the data are available in [s2-polars-data-analysis](https://github.com/sebosp/s2-polars-data-analysis)
10089

10190
### polars-cli
10291

@@ -141,13 +130,6 @@ $ # List the max number of minerals that were lost in per map when the army was
141130
- [ ] Support for MPQ embedded file: `replay.gamemetadata.json`
142131
- [ ] Support for MPQ embedded file: `replay.attributes.events`
143132

144-
## Current issues
145-
146-
In the arrow file generation, sha256 digest is used to detect duplication/etc.
147-
This inflates the size of the rows. Even tho it's slightly less than long directory names.
148-
Perhaps using short rev-parse for sha256 may be better, find something like 7-characters unique combinations
149-
And use that instead of the long sha256 form.
150-
151133
## version compatibility.
152134

153135
After a bit of testing, it seems most of the types are compatible between versions, so only when they differ would they make part of the protocol version.
@@ -171,7 +153,7 @@ RUST_LOG_SPAN_EVENTS=full RUST_LOG=debug cargo watch -i src/versions/protocol897
171153
# Additionally some code to transform from Protocol-Specific to Protocol-Agnostic was added, TODO: Add to generator.rs
172154
```
173155

174-
## JSON Sources
156+
## JSON Spec Sources
175157

176158
[Blizzard/s2protocol repo](https://github.com/Blizzard/s2protocol)
177159

jupyter_notebooks/Basic-Unit-Queries.ipynb

Lines changed: 0 additions & 14305 deletions
This file was deleted.

jupyter_notebooks/functime.ipynb

Lines changed: 0 additions & 77 deletions
This file was deleted.

requirements.txt

Lines changed: 0 additions & 172 deletions
This file was deleted.

src/arrow/ipc_writer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub fn write_batches(
1818
schema: arrow2::datatypes::Schema,
1919
chunks: &[Chunk<Box<dyn Array>>],
2020
) -> Result<(), Box<dyn std::error::Error>> {
21-
let file = std::fs::File::create(&path)?;
21+
let file = std::fs::File::create(path)?;
2222

2323
let options = arrow2::io::ipc::write::WriteOptions { compression: None };
2424
let mut writer = arrow2::io::ipc::write::FileWriter::new(file, schema, None, options);

0 commit comments

Comments
 (0)