Skip to content

Commit 0930c0e

Browse files
committed
Merge branch 'develop'
2 parents 3f83960 + 807e88c commit 0930c0e

File tree

13 files changed

+22
-100
lines changed

13 files changed

+22
-100
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pyo3 = "0.27.2"
7171
numpy ="0.27.1"
7272
rayon = "1.11.0"
7373
smallvec = { version = "1.13", features = ["serde"] }
74-
thiserror = "2.0.17"
74+
thiserror = "2.0.18"
7575
serde = { version = "1.0.228", features = ["derive", "rc"] }
7676
serde_json = { version = "1.0.149" }
7777
chrono = { version = "0.4.43", default-features = false, features = ["std"] }

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
<h1 align="center">Radiate</h1>
1+
<!-- <h1 align="center">Radiate</h1>
22
<p align="center">
33
<img src="/docs/assets/logo/radiate.png" height="100" width="60" alt="Radiate Logo" />
4-
</p>
4+
</p> -->
5+
6+
7+
<figure>
8+
<img
9+
src="assets/logo/banner_light.jpeg"
10+
alt="Radiate"
11+
style="width:900px; border-radius:20px;"
12+
/>
13+
</figure>
514

615
<div align="center">
716
<img src="https://img.shields.io/github/check-runs/pkalivas/radiate/master" alt="master branch checks" />

crates/radiate-gp/src/collections/graphs/aggregate.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,6 @@ pub enum AggregateInsertValue<'a, T> {
1212
Many(&'a [GraphNode<T>]),
1313
}
1414

15-
impl<'a, T> AggregateInsertValue<'a, T> {
16-
pub fn len(&self) -> usize {
17-
match self {
18-
AggregateInsertValue::Single(_) => 1,
19-
AggregateInsertValue::Many(nodes) => nodes.len(),
20-
}
21-
}
22-
23-
pub fn is_empty(&self) -> bool {
24-
match self {
25-
AggregateInsertValue::Single(_) => false,
26-
AggregateInsertValue::Many(nodes) => nodes.is_empty(),
27-
}
28-
}
29-
30-
pub fn is_single(&self) -> bool {
31-
matches!(self, AggregateInsertValue::Single(_))
32-
}
33-
34-
pub fn is_many(&self) -> bool {
35-
matches!(self, AggregateInsertValue::Many(_))
36-
}
37-
}
38-
3915
impl<'a, T> From<&'a GraphNode<T>> for AggregateInsertValue<'a, T> {
4016
fn from(value: &'a GraphNode<T>) -> Self {
4117
AggregateInsertValue::Single(value)

crates/radiate-python/src/bindings/metric.rs

Lines changed: 1 addition & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -7,70 +7,6 @@ use pyo3::{pyclass, pymethods};
77
use radiate::{Metric, MetricSet};
88
use serde::{Deserialize, Serialize};
99

10-
// #[pyclass]
11-
// #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
12-
// pub enum PyTagKind {
13-
// Selector,
14-
// Alterer,
15-
// Mutator,
16-
// Crossover,
17-
// Species,
18-
// Failure,
19-
// Age,
20-
// Front,
21-
// Derived,
22-
// Other,
23-
// Statistic,
24-
// Time,
25-
// Distribution,
26-
// Score,
27-
// Rate,
28-
// }
29-
30-
// impl Into<TagKind> for PyTagKind {
31-
// fn into(self) -> TagKind {
32-
// match self {
33-
// PyTagKind::Selector => TagKind::Selector,
34-
// PyTagKind::Alterer => TagKind::Alterer,
35-
// PyTagKind::Mutator => TagKind::Mutator,
36-
// PyTagKind::Crossover => TagKind::Crossover,
37-
// PyTagKind::Species => TagKind::Species,
38-
// PyTagKind::Failure => TagKind::Failure,
39-
// PyTagKind::Age => TagKind::Age,
40-
// PyTagKind::Front => TagKind::Front,
41-
// PyTagKind::Derived => TagKind::Derived,
42-
// PyTagKind::Other => TagKind::Other,
43-
// PyTagKind::Statistic => TagKind::Statistic,
44-
// PyTagKind::Time => TagKind::Time,
45-
// PyTagKind::Distribution => TagKind::Distribution,
46-
// PyTagKind::Score => TagKind::Score,
47-
// PyTagKind::Rate => TagKind::Rate,
48-
// }
49-
// }
50-
// }
51-
52-
// impl From<TagKind> for PyTagKind {
53-
// fn from(tag: TagKind) -> Self {
54-
// match tag {
55-
// TagKind::Selector => PyTagKind::Selector,
56-
// TagKind::Alterer => PyTagKind::Alterer,
57-
// TagKind::Mutator => PyTagKind::Mutator,
58-
// TagKind::Crossover => PyTagKind::Crossover,
59-
// TagKind::Species => PyTagKind::Species,
60-
// TagKind::Failure => PyTagKind::Failure,
61-
// TagKind::Age => PyTagKind::Age,
62-
// TagKind::Front => PyTagKind::Front,
63-
// TagKind::Derived => PyTagKind::Derived,
64-
// TagKind::Other => PyTagKind::Other,
65-
// TagKind::Statistic => PyTagKind::Statistic,
66-
// TagKind::Time => PyTagKind::Time,
67-
// TagKind::Distribution => PyTagKind::Distribution,
68-
// TagKind::Score => PyTagKind::Score,
69-
// TagKind::Rate => PyTagKind::Rate,
70-
// }
71-
// }
72-
// }
73-
7410
#[pyclass]
7511
#[derive(Clone, Deserialize, Serialize)]
7612
#[repr(transparent)]
@@ -242,11 +178,7 @@ impl From<Metric> for PyMetric {
242178
#[pymethods]
243179
impl PyMetric {
244180
pub fn __repr__(&self) -> String {
245-
format!(
246-
"PyMetric(name='{}', count={})",
247-
self.inner.name(),
248-
self.inner.count()
249-
)
181+
format!("PyMetric(name='{}')", self.inner.name())
250182
}
251183

252184
pub fn __dict__<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyDict>> {

docs/assets/logo/banner_dark.jpeg

212 KB
Loading

docs/assets/logo/banner_light.jpeg

199 KB
Loading

docs/assets/logo/banner_light.png

-1.68 MB
Binary file not shown.

docs/assets/logo/banner_maybe.png

-2.22 MB
Binary file not shown.
2.07 MB
Loading
1.65 MB
Loading

0 commit comments

Comments
 (0)