- 🔭 I’m currently working on implementing workflows in Jupyter Notebooks and facilitating Open Science
- 🌱 I’m currently learning about Synthetic Aperture Radar (SAR)
- 💡 I'm looking forward to working on:
- My arch distro (endlessly)
- Finding a new Raspberry Pi project
- Designing a case for my Ferris Sweep in OpenSCAD
- 💬 Ask me about Linux, (Neo)Vim, Programming Languages
- 📫 How to reach me: [email protected]
- 😄 Pronouns: he/him
- ⚡ Fun fact: I have two dogs, a Cavalier Spaniel named Rui and a Dachshund named Lola
aurora's Introduction
aurora's People
aurora's Issues
Refactor err_msg.h
- Copy err_msg.h to err_msg.hpp
- Write tests for err_msg.hpp
- Convert err_msg.hpp to C++17
- Write tests for any new functionality created during the C -> C++ conversion
Refactor sp2ppm.c
- Copy sp2ppm.c to sp2ppm.cpp
- Write test for sp2ppm.cpp
- Convert to C++17
- Write tests for any new functionality created during the C -> C++ conversion
Refactor stack.h/.c
- Copy stack.h to stack.hpp
- Copy stack.c to stack.cpp
- Write tests for stack.hpp
- Write test for stack.cpp
- Convert to C++17
- Write tests for any new functionality created during the C -> C++ conversion
integrate into one makefile under tests
I think we should integrate into one makefile, but I am not that experienced with makefiles and could not get them to work inside 'Makefile' so that why I created 'Makeray'. If someone can integrate that on their next push, it would be awesome.
Originally posted by @ETY-13 in #26 (comment)
Refactor noise.h/.c
- Copy noise.h to noise.hpp
- Copy noise.c to noise.cpp
- Write tests for noise.hpp
- Write test for noise.cpp
- Convert to C++17
- Write tests for any new functionality created during the C -> C++ conversion
Refactor octree.h/.c
- Copy octree.h to octree.hpp
- Copy octree.c to octree.cpp
- Write tests for octree.hpp
- Write test for octree.cpp
- Convert to C++17
- Write tests for any new functionality created during the C -> C++ conversion
Refactor view.h/.c
- Copy view.h to view.hpp
- Copy view.c to view.cpp
- Write tests for view.hpp
- Write test for view.cpp
- Convert to C++17
- Write tests for any new functionality created during the C -> C++ conversion
Classes in rays.hpp
It looks like we're still using typedef struct ...
in rays.hpp. Should we use classes instead of structs?
Also, the typedef
keyword in C++ is not necessary. Relevent StackOverflow
Add an 'all' option to the makefile
rays.c 64-bit floating point bug
Update INF and TOL to 64-bit constants, as they are currently 32-bit constants.
Refactor render.h/.c
- Copy render.h to render.hpp
- Copy render.c to render.cpp
- Write tests for render.hpp
- Write test for render.cpp
- Convert to C++17
- Write tests for any new functionality created during the C -> C++ conversion
Refactor timing.h/.c
- Copy timing.h to timing.hpp
- Copy timing.c to timing.cpp
- Write tests for timing.hpp
- Write test for timing.cpp
- Convert to C++17
- Write tests for any new functionality created during the C -> C++ conversion
address several warnings
I've created #4 with some changes I made to address some warnings.
user@host$ make epr
cc -O2 -DSGI32 -ILibrary -c render.c
render.c: In function ‘render_image’:
render.c:2037:5: warning: format not a string literal and no format arguments [-Wformat-security]
2037 | printf("\n"); printf(sharps);
| ^~~~~~
render.c:2043:7: warning: format not a string literal and no format arguments [-Wformat-security]
2043 | printf(sharps);
| ^~~~~~
render.c:2052:7: warning: format not a string literal and no format arguments [-Wformat-security]
2052 | printf(sharps);
| ^~~~~~
render.c:2091:7: warning: format not a string literal and no format arguments [-Wformat-security]
2091 | printf(dashes);
| ^~~~~~
render.c:2101:7: warning: format not a string literal and no format arguments [-Wformat-security]
2101 | printf(dashes);
| ^~~~~~
render.c:2446:11: warning: implicit declaration of function ‘stackdestroy’; did you mean ‘stackdestory’? [-Wimplicit-function-declaration]
2446 | stackdestroy(&theStack);
| ^~~~~~~~~~~~
| stackdestory
cc -O2 -DSGI32 -DDO_GREEN -ILibrary -c epr.c
epr.c: In function ‘main’:
epr.c:801:5: warning: format not a string literal and no format arguments [-Wformat-security]
801 | printf("\n"); printf(asterisks);
| ^~~~~~
epr.c:805:5: warning: format not a string literal and no format arguments [-Wformat-security]
805 | printf(asterisks);
| ^~~~~~
cc -O2 -DSGI32 -ILibrary -LLibrary render.o epr.o -o epr \
-lepr -lm
There are several warnings remaining that I did not address, because I understand the consensus to be that they can be safely ignored.
(base) bryan@Obi-Wan:/mnt/d/usr/local/CS600/EPR$ make epr
cc -O2 -DSGI32 -ILibrary -c render.c
render.c: In function ‘get_turbulence_map’:
render.c:296:3: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
296 | fscanf(fp, "P5\n");
| ^~~~~~~~~~~~~~~~~~
render.c:332:3: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
332 | fscanf(fp, "P5\n");
| ^~~~~~~~~~~~~~~~~~
render.c:374:3: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
374 | fscanf(fp, "P5\n");
| ^~~~~~~~~~~~~~~~~~
render.c:410:3: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
410 | fscanf(fp, "P5\n");
| ^~~~~~~~~~~~~~~~~~
render.c: In function ‘render_image’:
render.c:2528:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
2528 | write(outfile, buf, raw_header);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
render.c:2529:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
2529 | write(outfile, raw, (s.xres*s.yres)*sizeof(float));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -O2 -DSGI32 -ILibrary -LLibrary render.o epr.o -o epr \
-lepr -lm
The PR also addresses a warning that I seem to have forgotten to capture "in the wild". To mitigate, epr.c now includes timing.h to avoid the implicit get_time() call.
Refactor epr.c
- Copy epr.c to epr.cpp
- Write test for epr.cpp
- Convert to C++17
- Write tests for any new functionality created during the C -> C++ conversion
Refactor rays.h/.c
- Copy rays.h to rays.hpp
- Copy rays.c to rays.cpp
- Write tests for rays.hpp
- Write test for rays.cpp
- Convert to C++17
- Write tests for any new functionality created during the C -> C++ conversion
raster.h defines write_shaded_as_ppm() without uLong as defined in atomics.h
This typedef is across all architectures, typedef unsigned long int uLong;
Is it important to search the codebase and replace any use of unsigned long int by uLong?
I did that, and the only other place I find unsigned long int
is in raster.c.
It seems like it would be a good idea to replace this with uLong?
Refactor raster.h/.c
- Copy raster.h to raster.hpp
- Copy raster.c to raster.cpp
- Write tests for raster.hpp
- Write test for raster.cpp
- Convert to C++17
- Write tests for any new functionality created during the C -> C++ conversion
Refactor atomics.h
- Copy atomics.h to atomics.hpp
- #21
- Convert atomics.hpp to C++17
- Write tests for any new functionality created during the C -> C++ conversion
Write doctest tests for atomics.hpp
I need to understand how doctest works if we're going to use it for testing. I've cloned the repo and I'm looking through the examples.
consistent indentation
It would be nice to have consistent indentation here
Originally posted by @dgpalmieri in #26 (comment)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.