Skip to content

Commit

Permalink
fixed parts
Browse files Browse the repository at this point in the history
  • Loading branch information
saisurbehera committed Jun 30, 2024
1 parent ae1d31f commit 3f5686e
Show file tree
Hide file tree
Showing 21 changed files with 3,321 additions and 270 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
[pre-commit]: https://github.com/pre-commit/pre-commit
[black]: https://github.com/psf/black

This codebase is a python package designed to provide a lot of helper functions for ARC-challenge users. Feel free to use it and contribute to it. It is still a work in progress, so please be patient.
This codebase is a python package designed to provide a lot of helper functions for ARC-challenge users. Feel free to use it and contribute to it. It is still a work in progress, so please be patient.

## Features

Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sphinx configuration."""

project = "Arclang"
author = "Sai Surbehera"
copyright = "2024, Sai Surbehera"
Expand Down
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Nox sessions."""

import os
import shlex
import shutil
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ python = "^3.12"
click = ">=8.0.1"
numpy = "^2.0.0"
matplotlib = "^3.9.0"
jinja2 = "^3.1.4"

[tool.poetry.dev-dependencies]
Pygments = ">=2.10.0"
Expand Down
4 changes: 2 additions & 2 deletions random/testing_p3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1743,7 +1743,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "base",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -1757,7 +1757,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
"version": "3.11.0"
}
},
"nbformat": 4,
Expand Down
1,647 changes: 1,647 additions & 0 deletions random/testing_p4.ipynb

Large diffs are not rendered by default.

75 changes: 75 additions & 0 deletions src/arclang/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Functions 1

## C++ to Python Port Checklist

- [x] Col / col
- [x] Pos / pos
- [x] Square / square
- [x] Line / line
- [x] getPos / get_pos
- [x] getSize / get_size
- [x] hull / hull
- [x] toOrigin / to_origin
- [x] getW / get_w
- [x] getH / get_h
- [x] hull0 / hull0
- [x] getSize0 / get_size0
- [x] Move / move
- [x] filterCol / filter_col
- [x] broadcast / broadcast
- [x] colShape / col_shape
- [x] compress / compress
- [x] embedSlow / (Not ported, but embed function exists)
- [x] embed / embed
- [x] compose / compose
- [x] outerProductIS / outer_product_is
- [x] outerProductSI / outer_product_si
- [x] Fill / fill
- [x] interior / interior
- [x] border / border
- [x] alignx / align_x
- [x] aligny / align_y
- [x] align / align
- [x] align (matching version) / align_images
- [x] replaceCols / replace_cols
- [x] center / center
- [x] transform / transform
- [x] mirrorHeuristic / mirror_heuristic
- [x] rigid / rigid
- [x] invert / invert
- [x] interior2 / interior2
- [x] count / count
- [x] myStack / my_stack
- [x] wrap / wrap
- [x] smear / smear
- [x] extend / extend
- [x] pickMax / pick_max
- [x] maxCriterion / max_criterion
- [x] cut / cut
- [x] splitCols / split_cols
- [x] compose (for vector of Images) / compose_list
- [x] getRegular / get_regular
- [x] cutPickMax / cut_pick_max
- [x] regularCutPickMax / regular_cut_pick_max
- [x] splitPickMax / split_pick_max
- [x] cutCompose / cut_compose
- [x] regularCutCompose / regular_cut_compose
- [x] splitCompose / split_compose
- [x] cutIndex / cut_index
- [x] pickMaxes / pick_maxes
- [x] pickNotMaxes / pick_not_maxes
- [x] cutPickMaxes / cut_pick_maxes
- [x] splitPickMaxes / split_pick_maxes
- [x] heuristicCut / heuristic_cut
- [x] repeat / repeat
- [x] mirror / mirror
- [x] majCol / maj_col

Additional Python functions not in C++:
- [x] get_alternating
- [x] get_constant
- [x] get_repeating


# Functions 2

1 change: 1 addition & 0 deletions src/arclang/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Command-line interface."""

import click


Expand Down
3 changes: 3 additions & 0 deletions src/arclang/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MAXSIDE = 100
MAXAREA = 40 * 40
MAXPIXELS = 40 * 40 * 5
Loading

0 comments on commit 3f5686e

Please sign in to comment.