-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to create 4-carbon chain #148
Comments
This issue is due to More details regarding implementation: The allowed structures are validated every time and atom is attempted to bond (see The workaround is to amend the @arouinfar Can you confirm that |
@Denz1994 something's still not quite right. I can connect 4 carbons in a straight line, but I'm then unable to attach any hydrogens to the carbon chain UNLESS I first attach something else like an N or O. I'm also finding cases like this that I can make in Java, but not in HTML5: However, the data for this molecule can be found in OtherMoleculesData.js |
The structure data has been inputted for the above-mentioned molecules. Can you confirm this is the case on Master @arouinfar? |
Things are generally working now @Denz1994. I'm seeing some buggy behavior that I'm not 100% sure how to consistently reproduce. Occasionally, I am unable to create large molecules, and it seems like it happens if I've used the button to cut all bonds Can you play around with it a bit and see if you can figure out what's going on? I also recommend having QA bang away on this issue during the next dev test. |
@Denz1994 something strange is going on. I'm currently trying to verify #169, and was trying to build acetic ethyl acid ester from #148 (comment). I was able to build it earlier today on master (see the screenshot in #169), but now I don't seem to be able to. My current procedure is:
EDIT: I was able to get around this by adding the 2nd oxygen before trying to connect the 4th carbon. The order in which atoms are connected should not matter. |
Regarding #148 (comment): A testing cycle may look something like this:
*The point is the order of the build path shouldn't matter to construct the molecule I've tried these steps with the below molecules and can't replicate the concerns brought up #148 (comment). @arouinfar Should we add more molecules to test? Also, what do you think about the above-proposed testing cycle? |
@arouinfar Could you try this dev version for reviewing #148 (comment). The build order for |
I misinterpreted the check that prevents #148 (comment). This was allowed in the legacy version as well. The concern was regarding a user no knowing what atoms are bonded in the example in #148 (comment). However, with the addition of the cut targets (yellow circles), it clearly shows what atoms are bonded. I don't think this is an issue. Tagging @arouinfar to confirm. |
Also, the above commits should have fixed the order dependent bonding problem that was mentioned by @arouinfar above. Can you test in this dev version @arouinfar? @jonathanolson and I did some intense deep-diving into the visitor arrays in Dev version: https://phet-dev.colorado.edu/html/build-a-molecule/1.0.0-dev.74/phet/build-a-molecule_en_phet.html |
This appears to be fixed in dev.74 @Denz1994. If the sim is in a good place, it would be nice to publish a new prototype to the website. |
This issue has been listed for QA to test with specific instructions in #148 (comment). |
I noticed (using phetsims/qa#506) that, if the molecule is built in a certain way, there may not be room to add some of the atoms needed. Is this acceptable? |
Correct me if I'm wrong @arouinfar, but I think the second image in #148 (comment) is technically a different molecule. For instance, the center carbon doesn't have two fluorines bonded to it. If that is the case then this is acceptable. |
It is a different molecule, but I was trying to build the top one. That second Fluorine can't be added because there is no room for it, it just bounces off. That is what I was trying to report. |
Ah, I see now. I think this is more in line with the atom layering issue. I don't think this is necessarily buggy behavior anymore because the user picked a path to build the molecule in a way that makes them run out of space. This is different than having the space to build and the correct atoms and it failing. I'll leave to @arouinfar for input. |
Agreed @Denz1994. I think it's important for students to thoughtfully place their atoms when building large molecules. I don't see the current behavior as a bug, but rather a productive constraint. |
Noticed during #131
It should be possible to connect four carbons in a straight chain, but that's not currently possible.
However, it is possible to connect them in this arrangement
The text was updated successfully, but these errors were encountered: