r/PythonProjects2 • • Aug 29 '20

[P] Hard I made a Python application to view n-dimensional hypercubes!

So this is the first Python project I’v ever released to the public. It’s an application to view and rotate different hypercubes, any feedback is much appreciated!

Hypercube Viewer

47 Upvotes

5 comments sorted by

2

u/navinfeb15 Aug 29 '20

First Python project ?? Looks cool dude. Keep it going

4

u/BSmith156 Aug 29 '20

Thanks man :) Its not my first but the first I actually finished to a good enough standard to actually release

1

u/Grorco Moderator Sep 17 '20

Hi, sorry this is way after the fact and you may have already moved on, but was just looking at your code and wanted to make a couple small suggestions about your fix.

First is never use an open ended exception if possible. It can lead to massive headaches if something unexpected is going wrong in the code block. Second, you should trt to use try/except blocks when bringing in any outside resource, it's a fairly common problem, especially if a user accidentally moves/deletes a file.

The last thing is about a potential fix, though I'm not positive. Try using pathlib.Path() to set the correct format for directory strings based on the OS. For example.

from pathlib import Path()

MyFile = Path("path/to/file.name")

0

u/[deleted] Nov 01 '20

[deleted]

1

u/BSmith156 Nov 01 '20

Could you give me some more info on what happened? Was there an error?